-4

I am using PHP 8.0 Version but recently i get this error : Uncaught Error: Call to undefined function mysql_real_escape_string()

is there any solution for this ?

nawaf
  • 1

1 Answers1

-1

mysql_real_escape_string was DEPRECATED in PHP 5.5.0 and REMOVED in PHP 7.0.0.¹

PHP recommends using MySQLi or PDO instead.

¹ https://www.php.net/manual/en/function.mysql-real-escape-string.php

Kim Hallberg
  • 1,165
  • 1
  • 9
  • 18