Помогите решить проблему, не могу понять почему не работает.
<?
ini_set('display_errors',1);
error_reporting(E_ALL);
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$conn = new mysqli('localhost', 'steam', 'steam', 'steam');
$show = 1;
$postid = 1;
$sql = "UPDATE shop_list SET show = '$show' WHERE id = '$postid'";
$result = $conn->query($sql);
?>
Ошибка:
Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show = '1' WHERE id = '1'' at line 1' in Z:\home\test1.ru\steam\test.php:11 Stack trace: #0 Z:\home\test1.ru\steam\test.php(11): mysqli->query('UPDATE shop_lis...') #1 {main} thrown in Z:\home\test1.ru\steam\test.php on line 11