get mysql_real_escape is giving me errors when I try and add security to my website
Posted
by
Mike
on Pro Webmasters
See other posts from Pro Webmasters
or by Mike
Published on 2012-08-30T20:00:36Z
Indexed on
2012/08/30
21:51 UTC
Read the original article
Hit count: 378
I tried doing this:
@ $db = new myConnectDB();
$beerName = mysql_real_escape_string($beerName);
$beerID = mysql_real_escape_string($beerID);
$brewery = mysql_real_escape_string($brewery);
$style = mysql_real_escape_string($style);
$userID = mysql_real_escape_string($userID);
$abv = mysql_real_escape_string($abv);
$ibu = mysql_real_escape_string($ibu);
$breweryID = mysql_real_escape_string($breweryID);
$icon = mysql_real_escape_string($icon);
I get this error:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user
© Pro Webmasters or respective owner