MySQL Forums
Forum List  »  PHP

Re: UPDATE error
Posted by: Peter Brawley
Date: January 08, 2013 07:41PM

> Would you mind clarifying whether the problem is in the HMTL or in the PHP

One problem is that logic required to validate user input is missing from the PHP script. Study some PHP-MySQL tutorials.

> how I can use mysql_real_escape_string() to make the code work?

?! vmysql_real_escape_string() cannot make the code work. Every user input should be apssed through it. It is a step required to protect your database from dangerous user input. Read about the function in the PHP manual.

Options: ReplyQuote


Subject
Written By
Posted
December 31, 2012 04:51PM
January 01, 2013 03:02AM
January 08, 2013 05:32PM
Re: UPDATE error
January 08, 2013 07:41PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.