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 Breklin on 10/17/06 19:36

Steve,

I know what the problem is however I was offering a tip, some advice, a
bit of knowledge about streamlining the code.

Rather than go into how she can write a Validation script to display
error messages, I suggested she use a canned script widely available on
the web. So, I did address the issue and then some. Best way for this
person to learn PHP is to see how it is written and self-educate.

Steve wrote:
> "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

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