Код: Выделить всё
$query = "SELECT * FROM amz WHERE asin = '$asin' LIMIT 1";
$q = mysqli_query($con, $query) or trigger_error(file_put_contents('wth_ama.txt', $query), E_USER_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 ''B07P8P6D7V'' LIMIT 1'
А по поводу ошибки, означает ли это, что asin буквально содержит «B07P8P6D7V», а не «B07P8P6D7V»? Если да, то этого на самом деле не должно произойти.
Подробнее здесь: https://stackoverflow.com/questions/791 ... -triggered
Мобильная версия