I am trying to figure out why this is getting error:
$thisName = mysqli_real_escape_string($conn,"sonny's");
echo $sql = "INSERT INTO TEST_year (playername)
VALUES ('$thisName')";
mysqli_query($conn,$sql) or die(mysqli_error());
I get this error when trying to do this:
Warning: mysqli_error() expects exactly 1 parameter, 0 given in TEST_update_leaderboards.php on line 25
I have tried just writing "sonnys" and everything is fine... What am I missing here?
Any help is appreciated and thanks in advance :-)