mysql insert
| From: | bryan brown | Date: | Tue, 10 Oct 2000 19:19:01 +0000 |
| Subject: | mysql insert | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-19411@lists.php.net to get a copy of this message | ||
I have a script that inserts values (from html
forms) into a mysql table. The insertion looks like
this:
mysql_db_query("dbname", $insert) or die
(mysql_errno()." ".mysql_error());
This works fine. However, there are fields in the
table that cant be null, but after doing the insertion
and viewing the table, those fields are null.
Wouldn't the error be set off and perform the die
function? Its not a big deal now, but when the code
gets into production it will be.
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/