17

/*echo "<pre>";

18

var_dump($categoryInfo);

19

die();*/

20 $parentCategoryInfo = $Zupr->selectEl("catalog", " WHERE id={$categoryInfo["parent_id"]}");

21

if (!empty($parentCategoryInfo)){

22

23

$parentParentCategoryInfo = $Zupr->selectEl("catalog", " WHERE id={$parentCategoryInfo["parent_id"]}");
21-11-2017 Замечание № 8

Описание ошибки: Undefined index: parent_id

Вызов из /var/www/delositenet/data/www/optica.delosite.net/catalog/index.php строка № 20

SQL Error: 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 '' at line 1 at /var/www/delositenet/data/www/optica.delosite.net/engine/Inclusio/Component/Zapr/Class.php line 8
Array
(
    [code] => 1064
    [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 '' at line 1
    [query] => SELECT * FROM catalog  WHERE id=
    [context] => /var/www/delositenet/data/www/optica.delosite.net/engine/Inclusio/Component/Zapr/Class.php line 8
)