I have this little block of PHP code used to update a SQL table. However, it should, because right now it's not doing anything, nor is it producing any errors:
$sql = "INSERT INTO `wordpress`.`thor_members` ($key) VALUES('$_POST[$key]') WHERE ID = '$_POST[ID]'";
var_dump($sql);
mysqli_real_escape_string($conn, $sql);
if(mysqli_error($conn)){
var_dump(mysqli_error($conn));
}
The var_dump
actually prints MySQL lines that work perfectly fine if I run them into PHPMyAdmin.