note 86855 added to faq.build
| From: | lali399 at gmail dot com | Date: | Thu, 06 Nov 2008 21:33:47 +0000 |
| Subject: | note 86855 added to faq.build | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146250@lists.php.net to get a copy of this message | ||
got a lot through a tutorial, but problem is when i tried to insert,
problem occured using following code:
$query = "INSERT INTO contacts VALUES
('','$first','$last','$phone','$mobile','$fax','$email','$web')";
mysql_query($query);
But when i used a code provided by my server for same purpose was
sucessful, which was:
$sql = 'INSERT INTO
server account_database name.table name
(id,
first, description, mobile, fax,
email, web) VALUES (NULL,
\'first\', \'$description\', \'$mobile\', \'$fax\',
\'ghjhjhg\',
\'ghgjghjghkgk\');';
Now My problem is that :- It supports only a single or static record
at a time & from my cpanel, but I want that the users of my website can
fill that form and when the click "submit query", then their input
should be added to the table and they can view their data...
I think that , here is a trouble in diff. version. Please If you give
me the code(query").
With this hope that you will surely reply me
----
Server IP: 69.147.83.197
Probable Submitter: 117.96.160.182
----
Manual Page -- http://www.php.net/manual/en/faq.build.php
Edit -- https://master.php.net/note/edit/86855
Del: integrated -- https://master.php.net/note/delete/86855/integrated
Del: useless -- https://master.php.net/note/delete/86855/useless
Del: bad code -- https://master.php.net/note/delete/86855/bad+code
Del: spam -- https://master.php.net/note/delete/86855/spam
Del: non-english -- https://master.php.net/note/delete/86855/non-english
Del: in docs -- https://master.php.net/note/delete/86855/in+docs
Del: other reasons-- https://master.php.net/note/delete/86855
Reject -- https://master.php.net/note/reject/86855
Search -- https://master.php.net/manage/user-notes.php