39,316 Topics
| |
Hey guyz? I am a newbie in php and have managed to create a website using php though spam bots have been sending me blank emails since the form is not validated. i have tried to validate it but i have not succeed. kindly assist. Below is the code of … | |
Hi, I have a email piping code show below. It works fine, except that when i print the $message, it also shows me some headers. [B]How do i strip the headers from the message itself?[/B] [B]email_piping.php file[/B] [code] #!/usr/bin/php -q <?php //header('Content-Type: text/html; charset=utf-8'); header("Expires: Mon, 26 Jul 1997 05:00:00 … | |
Hello, all: I have this small script where I am tryign to switch sessions based on what url-variable appears on address, as a way to use like a breadcrumb... and so far it only takes the first one, but then the "category" one doesnt catch... it keeps the "pageNum_worksRS" still … | |
Hi, Does anyone have a simple script that i could put on my webpages that when a user clicks on a link to download a file it displays something like (File Downloaded XX times) on the webpage. I found many scripts with admin interface etc, but i just want it … | |
Hi, I am having a problem using the curl lib with php. What I want to accomplish is to make multiple request pulling xml returned from two different url's that are called with curl. Here is the code: [CODE=php] $BROWSER="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 YFF3 Firefox/3.0.1"; … | |
I've been working at this and I just can't get this. Can anyone please tell me why this just will not work? [CODE=php] function procNewsStory() { global $session, $database; $admin = $session->username; $date = time(); $title=$_POST['title']; $story=$_POST['story']; $story_id = time(); $q = "INSERT INTO " .TBL_SITE_NEWS. " VALUES ('$admin', '$time', … | |
Im getting this error: Parse error: syntax error, unexpected $end in /hsphere/local/home/blah/blahblah.com/home/phonenumber.php on line 188. Problem is line 188 is </html> only. Also, I'm having problem making this code to work, it doesnt display the tables that I want [code=php] <?php $selection = $_POST['person']; $conn = mysql_connect("mrrrr.com","yyyyy","yyfffsd"); mysql_select_db("hhhh_ggg", $conn); // … | |
Hey, I have the following query which I would like to insert into another table which I guess would demand some kind of loop or such. The query: [CODE]$colname_GetName = "-1"; if (isset($_SESSION['MM_Username'])) { $colname_Name = $_SESSION['MM_Username']; } mysql_select_db("db_name"); $query_Recordset = sprintf("SELECT * FROM Table WHERE UserName = %s", GetSQLValueString($colname_GetName, … | |
I have over 50 sites on a host that provides Cpanel for each site. Through the Cpanel, I can do manual backups of the public_html directory, was well as the MySQL databases for each site, and have had those backups mailed to me quite successfully, but to do each site … | |
I did this video today, showing how to add "Re-generating Image Captcha" To your Scripts to avoid SPAMS! :) Metacafe Link.. [url]http://www.metacafe.com/watch/2723025/how_to_add_captcha_to_your_scripts/[/url] Youtube Link.. [url]http://www.youtube.com/watch?v=WLbxx64FbX0[/url] Enjoy.. ;) Rights to.. [url snipped] | |
i am trying to validate a form so that all required fields are filled before submission. If they are not filled then an error message should appear.. But I keep getting this error: "Parse error: parse error, unexpected '{' in C:\Program Files\wamp\www\template1\updateReceipt.php on line 31 " Here is the code … | |
I was thinking about making an avatar system (like Gaia Online; I've tried befor but it's hard). Can anybody help me with one? I'm gonna make an open source site like Gaia... I can't do it by myself, though. | |
Hi. I am working on a php-mysql project. My table contains a field called "ID", which i have declared as teh PRIMARY key. but what i want is, that when the user tries ot insert record B into the table, an **ERROR message** should be displayed, showing that a record … | |
Hi Friends, I just want to output the xml using php and mysql. Like If i have data in jan month and feb. I wanted to display that in xml sheet. How to go about this please help me. Regards Raghu | |
hi all, i have a problem with the array search in php.I have an array like ("apple","orange","mango") and i have a variable as $var="apple 1". Now i want to search this $var is exist in the above array and if so want to retreive that element from the array? that … | |
Hi, Please help me.I am new to PHP.I dont have any idea. For Example,i had set of 100 records in the table. Sample Design:PREVIOUS [U]1[/U] [U]2[/U] [U]3[/U] [U]4[/U] [U] NEXT[/U] Using PHP :if i click 1 (first 10 records must be list out in the web page) and then if … | |
I included a file in one of my sites via an iframe (simplest solution and by FAR not permanent), just to get a feel for the way it might look on the site However, after adding the iframe to the site, i have no other data, the page is saved … | |
hi pls give me the code for verifying the value in the drop down list thanks in advance chandan | |
Hi all i am a newbie and try different things everyday and always come here when i am stuck with something. I want to write a script using curl and php that goes to this link :[url]http://tools.cisco.com/WWChannels/LOCATR/openBasicSearch.do[/url] and then goes through each page for each country capturing a list of … | |
l am a php developer living in Zimbabwe,in need for help on selecting mercants who can help in my acceptance of payements from all over the world at an affordable cost | |
trying to get the user input via check boxes in my form. Data is held in an associative array $_POST, but when in processing page where I send the details back to myself I'm not quite sure what to do next. I figure I have to iterate my way through … | |
i'm currently working on a blog and i want it to get output from the database without refreshing the whole page. please can anybody help cos i'll be most grateful. thanks | |
Hello all, I have a bit of an issue, Currently I am working on a forum system. This is the code for when a person click on a forum category. I would like some suggestions as to how I could implement in such a way that if a non user … | |
Hi can any one help me!!! I need to display the latest entries by date and time ie i stored the date as 2009-Apr-16. so that i wrote a query as select * from tbl_projectstatus order by date asc ,time desc" But the above code displays as follows ie Normaly … | |
Hi , PEARS installed on my demo server and i want to run my script containing timezone but i am unable to run the script, the script is working properly on windows but as oue demo server is on linux i am uanble to run the script on linux,so plz … | |
I have created a form with PHP and connectied to database. Now i want to add images through my form and save in MYSQL database. Once i click on SUBMIT button i want to see total profile with image in new window Please provide complete code to add image from … | |
Hi all, We are experiencing the following problem with the latest versions of IE and FF in regards to sessions. If anyone has encountered these problems before, any insight would be valuable. [B]In FF:[/B] An ongoing problem where sessions are saved across multiple tabs and windows in the same machine. … | |
Hello all, I run a student website for law students, and got an amazing present today. A zip file with 1500 html pages with law related material. I need to integrate this into my vbulletin forum somehow. Some of the pages are good as simple posts, and the rest would … | |
If i have 3 records and if i apply random function to it ,i is displaying last two records frequently third record is displaying rarely but i want those three records to be display frequently can any one solve this problem, | |
Hi, This is my array and i want to make [2] => 1 to [2] => 4 How do i do it? Thanks [code] Array ( [SESSION] => hs6f5ul7q9dic13nv7crikf0p2 [USER] => Guest [5] => 3 [1] => 3 [2] => 1 [7] => 1 ) [/code] This code doesn't do … |
The End.