Click to See Complete Forum and Search --> : What to show if there is error in account for user


toplisek
10-30-2006, 06:30 AM
I have the following problem:
if user would like to change account information and there is reported error for this field. Should I use function to rememeber field or in this case should be shown value from table MySQL? How it is correct solution if there is reported error?

knowj
10-30-2006, 06:37 AM
if i understand your correctly i think thats what you want:

mysql_query($query) or die('custom message followed by'. mysql_error());

toplisek
10-30-2006, 06:40 AM
I would like to be more clear. Error Message is error for the particular field like
e-mail is not valid. I have validation of fields

knowj
10-30-2006, 06:47 AM
so user clicks submit if the email isn't right send an error message?

http://www.htmlcenter.com/tutorials/tutorials.cfm/149/PHP/

that link should be useful