|
Posted by Steve on 10/17/06 19:04
"Breklin" <breklin@sbcglobal.net> wrote in message
news:1N8Zg.14864$vJ2.623@newssvr12.news.prodigy.com...
| #1, if you have set your table to auto_increment for the ID field, you
| do not need to use a post to put that data into that field. This is a
| great way to eliminate the possibility of duplicate ID data.
|
| Remove the $_POST['id'] and in the SQL statement, use '' instead of
| '$id' like this:
|
| $query = "INSERT INTO floral VALUES
('','$name','$info','$pic','$lg_pic','$price')";
|
| There are many PHP form validation scripts out there with messaging. Try
going to phpclasses.org for these types of scripts.
oui-vey.
auto-increment is NOT the problem...please read the actual problem of the op
before responding. the classes suggestion was a good point though.
[Back to original message]
|