Re: Submitting data to MySQL database using HTML/PHP form
| From: | Donovan Brooke | Date: | Sun, 20 Feb 2011 18:37:34 +0000 |
| Subject: | Re: Submitting data to MySQL database using HTML/PHP form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311463@lists.php.net to get a copy of this message | ||
This is probably a post better sent to the php-db list... but
Whenever you work with MySQL, it's good to retrieve the actual error from mysql to help you troubleshoot.
I posted this php_mysql lib a while back which is what I used on my last project.
http://www.euca.us/downloads/euca_phpmysql.zip (4KB)
it will show use of mysql_error()
Other than that, use some basic troubleshooting.
What is $insert parsing to exactly? Does it look correct?
Donovan
--
D Brooke