HubsInfo Network
Login or Register to remove ads! You're browsing our forum and website as a Guest meaning you can only see a portion of the forum in read-only mode.
PHP MySQL Linux Material Design Web Hosting Online Games SimCity BuildIt

PHP Warning mysqli_real_escape_string expects exactly 2 parameters


How to fix "PHP Warning:  mysqli_real_escape_string() expects exactly 2 parameters, 1 given in"


Wrong:
Code: [Select]
$Id = mysqli_real_escape_string($_GET['Id']);
Correct:
Code: [Select]
$Id = mysqli_real_escape_string($conn, $_GET['Id']);
 



Linux Ubuntu Guides Linux games - Lutris.net