0

Guys how dows this work in php: 'mysql_real_escape_string($_POST[ ] )' explain

PHP

1st Mar 2021, 5:14 AM
Mubarak
2 Antworten
+ 2
mysql_* is near deprecation (or maybe already is). Use mysqli_* instead https://www.php.net/manual/en/book.mysqli.php https://www.php.net/manual/en/mysqli.real-escape-string.php
1st Mar 2021, 5:51 AM
Ipang
+ 1
'mysql_real_escape_string($_POST[ ] )' should raise error, as you're doesn't give any index inside square brackets... however, 'mysql_real_escape_string' function return escaped version of a string, logically related to mysql ^^
1st Mar 2021, 5:22 AM
visph
visph - avatar