You are here: Re: on input form showing error message for duplicate entry. « All PHP « IT news, forums, messages
Re: on input form showing error message for duplicate entry.

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация