39,320 Topics

Member Avatar for
Member Avatar for jetlife76

Hi guys, i was watching a video on youtube and noticed that the program the guy was using had a feature where it would pretty much suggest code as he typed. I remember something like this in visual basics and thought it would be cool to help me with PHP …

Member Avatar for jetlife76
0
117
Member Avatar for simplyhuman
Member Avatar for diafol
0
241
Member Avatar for gorleone

[CODE] <?php class Database { public function protect($data){ $data = trim($data); $data = stripslashes($data); $data = strip_tags($data); $data = mysql_real_escape_string($data); return $data; } } $database = new Database(); $txt = '<strong>\\\Test///</strong>'; $txt = $database->protect($txt); echo $txt; [/CODE] And output have a <strong> tag, slashes and all with zero errors. I …

Member Avatar for diafol
0
142
Member Avatar for hypno2000

allow HTML in text area - PHP Postby hypno ยป Sun Nov 13, 2011 9:56 pm I am working on php based site.( :( and I am a newbie in PHP) . A upload form is part of the site. When tested submiting the form, whatever HTML tag I input …

Member Avatar for diafol
0
148
Member Avatar for Drugsxxx

Hi i have a code that shows me some repitnig data from .txt file. Code looks like: [CODE]$getText = file_get_contents("Kier.txt", true); $Poln = substr_count($getText ,"Polnoc"); $PolnW = substr_count($getText ,"Polnocny-Wschod"); $Wsch = substr_count($getText ,"Wschod"); $PoldW = substr_count($getText ,"Poludniowy-Wschod"); $Pold = substr_count($getText ,"Poludnie"); $PoldZ = substr_count($getText ,"Poludniowy-Zachod"); $Zach = substr_count($getText ,"Zachod"); $PolnZ …

Member Avatar for diafol
0
127
Member Avatar for hindu times

Hi there, This is following on from a previous solved thread. Basically, I have this code: [CODE]<td colspan="2" align = "center" style="color:#FF0000; font-weight:bold;">' . ((isset($_GET['error']) and ($_GET['error']=='recaptcha')) ? 'Error: The captcha was entered incorrectly. Please try again.' : '') . ' </td>[/CODE] I've now been told that the "Error: The …

Member Avatar for jpdeleon
0
336
Member Avatar for poopoo_pp

Hi all Not sure if im posting in the right section so sorry if i am. I have been looking for an open source asset/inventory solution for a friend. I came across Free CMMS on sourceforge.net and for ease of installation and testing installed the latest version of XAMPP as …

Member Avatar for pritaeas
0
395
Member Avatar for chiragsathit

Hi I am new in Joomla.... i want to add dynamic page in joomla. i want also bind dynamic page in menu..... Please Reply ASAP.......

Member Avatar for vishal9717
0
65
Member Avatar for Treasurepet

Hello all, I have a site with login system, when I run it on my local sever it worked perfectly ok, but when uploaded it was not taking me to member page as on my local server. Please can anybody help me with this. The codes are below. myconfig.php [code]<?php …

Member Avatar for Stefano Mtangoo
0
390
Member Avatar for Webxpres

I have this code but i can't get it to output in the email address i specified on the form. [CODE]<form action="Script/sender_subscription.php" method="post" name="Pillar Gardens Offer Form" target="_blank" id="Pillar Gardens Offer Form"> <table width="100%" border="1" align="left" cellpadding="1" cellspacing="0" bordercolor="#F8F8F8" bordercolorlight="#CCCCCC"> <tr> <td colspan="2" align="center" valign="middle"><table width="100%" cellpadding="0" cellspacing="0"> <tr> <td …

Member Avatar for Stefano Mtangoo
0
212
Member Avatar for jacksantho

Hi, Guys Could anyone tell me how to import MsExcel data into MySQL using PHPExcel. I want to make an upload system for my users. They want to upload their data which is in Ms Excel format into MySQL databases...Please teach me how to do that... And I appreciate your …

Member Avatar for vimalnath53
0
144
Member Avatar for jacksantho

Hi, I needs to upload the excel file and how can i read this excel file cell by cell using PHPExcel class and needs to import into database(mysql or mssql).please help me out. thanks in advance

Member Avatar for vimalnath53
0
75
Member Avatar for sacarias40

Hey guys, I am writing a bot class to scrape some information off of websites. Here are the requirements. [LIST] [*]Specify Url [*]Check for valid url [*]'GET' contents of url with curl [*]check mime type & response status code [*]check for special url [LIST] [*]parse special data [/LIST] [*]parse for …

Member Avatar for sacarias40
0
326
Member Avatar for jone kent

Hello i am new here also new in php i have problem with my code [CODE] $seller_id = $listings[]['Account_ID']; $seller_info = $rlAccount -> getProfileInfo( $seller_id ); $rlSmarty -> assign_by_ref( 'seller_info', $seller_info ); i get this error Fatal error: Cannot use [] for reading in [/CODE] the array is [CODE] Array …

Member Avatar for jone kent
0
3K
Member Avatar for asif49

I'm not really good with arrays and have had a go at this, but to no avail. I have a string called $str and another called $area. I need to split the string $str into an array of words (delimiter being spaces). This is the part I was able to …

Member Avatar for asif49
0
151
Member Avatar for saurabh2007

If I am inside a folder and I use "/", it uses it for root directory so [CODE]<a href="/">test</a>[/CODE] links to [url]www.test.com/index.php[/url] For example, if i am in the file [url]www.test.com/login/index.php[/url] and I use "/" then it goes to root directory but if I am in [url]www.test.com/index.php[/url] which is the …

Member Avatar for saurabh2007
-1
83
Member Avatar for aru211285

Hi all, I have 2 multidimensional arrays which i have to print simultaneously and one of them will not have same number of elements at some times. So i check them using empty() function. As it is not possible to check every single element, i wrote a function which has …

Member Avatar for diafol
0
5K
Member Avatar for kkasp

Hi! I am building a simple blog website and am stuck when I get to the posting comments part. I write my comment to post and when I hit post comment I get the error message: Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs\simple_blog\inc\update.inc.php on line 90 Here is my …

Member Avatar for diafol
0
179
Member Avatar for Drugsxxx

Is it pasible to find all occurrences of strings "North" and "North-East" in some txt file and save number of occurrences in some variable??

Member Avatar for Drugsxxx
0
2K
Member Avatar for deraad

I'm making a feature like stated in the title that gives suggestions based on what terms exist in the database; I have a working example below that works for one term. such as "oranges", or "yellow bananas". However, I need it to work for multiple terms so if my database …

Member Avatar for deraad
1
236
Member Avatar for dhosthee

We are developing a email web site.but we are facing problem in receiving and validating the mail.i have the following doubts.can you please help me in clarifying these??? one more important thing is we are not using squrrelmail, qmail etc. how do we receive emails for users in email web …

Member Avatar for chrishea
0
143
Member Avatar for geekme
Member Avatar for almostbob
0
88
Member Avatar for mehdi.yazdani

Hi, i created the page which is display some information from database with some rules in the end of page i putted the command that it is show how many page that i have. so, i decide to add next and previous in the sides of page numbers and also …

Member Avatar for Stefano Mtangoo
0
97
Member Avatar for phfilly

Hi! I would just like to know if its possible to give an linked image the ability to send the form instead of a submit button? Like in the example below: [CODE] <form method="post" action="Search.php"> <table id="search"> <tr> <td> Search: <input type="text" name="search" id="search" placeholder="Search for friends"/><td><a href="Search.php" action="Search.php"><img src="graphics/search.png" …

Member Avatar for selina12
0
145
Member Avatar for rajesh1158

I'm very much depressed with the following code. As for me, everything is correct. But the Goddamn code doesn't work. I've a html form with radio buttons and a hidden field. On clicking Submit, the form does not submit. Trying print_r($_POST) on the submitted radio button variable, it returns an …

Member Avatar for Zahinize
0
1K
Member Avatar for nikki05

Hi, I followed the steps to install the social network as shown in below link. I am able to install the social network in my forum. I can see online and offline users. Also, I set the permissions "allow chat only with friends" ," Open links in new window" in …

0
132
Member Avatar for zeeya

Hello!! For my final year project, i would like to build decision support system that give suggestion to customer to build their house based on type of house and price. So, customer will select type of house that they like and also the budge money that they have. Then, the …

Member Avatar for Stefano Mtangoo
0
920
Member Avatar for kb.c7

i want the month to date reports from starting of this month to present day. how to do that in php

Member Avatar for almostbob
0
62
Member Avatar for jetlife76

Ok guys i am working on a program that will compute the distance in miles from Chicago or dallas(radio buttons)to specific destinations. The destination cities are in a selection list. The output should be the distance between the two cities, the time it would take to drive at 60 mph. …

Member Avatar for jetlife76
0
111
Member Avatar for klemme

Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working.. Its not the point only to allow one / or - But only letters, numbers and /- in …

Member Avatar for pritaeas
0
2K

The End.