<?php
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$link = mysqli_connect('127.0.0.1:3306', 'root', 'root', 'bdwheelz')
or die("Ошибка " . mysqli_error($link));
$product_id = $_GET['id'];
$product = mysqli_query($link, "SELECT * FROM 'assor' WHERE 'id' = '$product_id'");
$product = mysqli_fetch_assoc($product);
?>
При таком запросе выдает ошибку:
Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''assor' WHERE 'id' = '5'' at line 1 in C:\OpenServer\domains\wheelz.ru\update.php:8
Stack trace:
#0 C:\OpenServer\domains\wheelz.ru\update.php(8): mysqli_query(Object(mysqli), 'SELECT * FROM '...')
#1 {main} thrown in C:\OpenServer\domains\wheelz.ru\update.php on line 8