Function to check if a string is backslashed for mysql

mr.karam

New Member
Since there is no function to check whether a string is escaped before entering it to the db, how can I do this with regex?\[code\]$string = 'some" string';if(!preg_match('//',$string)){ $string = mysqli_real_escape_string($string);}\[/code\]php manual: \[quote\] mysqli_real_escape_string backslashes characters encoded NUL (ASCII 0), \n, \r, \, ', ", and Control-Z. \[/quote\]
 
Back
Top