Home › Forums › JavaScript › Do we need mysql_real_escape_string when we use mysqli ? › Re: Do we need mysql_real_escape_string when we use mysqli ?
May 13, 2013 at 12:49 am
#134874
unasAquila
Participant
with mysqli it would be
object oriented
$checkVar = $mysqli->real_escape_string($checkVar);
or proceduraly
$checkVar = mysqli_real_escape_string($dbConnection, $checkVar );
either way it’s always good to do as much security testing as possible.