Jump to content

Inserting values via php to sql database


Veraedon

Recommended Posts

You are calling the sanitiseMySQL function three times, on lines 22,23,and 24, in your posted code. You are making the mysqli connection in $conn on line 36 in your posted code. The line where you are making the database connection in $conn is after where you are calling the function that uses the connection in $conn, therefor the error you are getting - Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.