Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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 ?

#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.