MySQL Forums
Forum List  »  PHP

Re: Adding a filename to a MySql database
Posted by: Rick James
Date: November 21, 2009 11:01AM

Never do
mysql_query("INSERT ... VALUES ('$val', ...)
without first escaping $val:
$eval = mysql_real_escape_string($val);
mysql_query("INSERT ... VALUES ('$eval', ...)

Options: ReplyQuote


Subject
Written By
Posted
Re: Adding a filename to a MySql database
November 21, 2009 11:01AM


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.