setLogger('myLogger'); if(!empty($_POST)){$key = "%". varchk(@$_POST["key"]) ."%";} if(!empty($_GET)){$key = "%". varchk(@$_GET["key"]) ."%";} $key_form = varchk(@$_POST["key"]) ; #Загружаем товары $goods = $db->select('SELECT DISTINCT title, id, type FROM production WHERE (`hide` IS NULL) AND ( `razdel` LIKE ? OR `title` LIKE ? OR `text` LIKE ? )', $key, $key, $key); $sql = "SELECT * FROM production WHERE "; foreach($goods as $gh){ $sql .= "id = '". $gh['id'] ."' OR "; } $sql .= "1 != 1"; #echo $sql; $goods = $db->select($sql); ?> Soundage
Search
'; if($i == 4){ echo ""; $i = 0 ;} } }else{ $g = $db->selectRow('SELECT * FROM `production` WHERE id=?d', $_GET["id"]); echo ' '; } ?>
' . $g["price"]. ' €.
'.$g["price"].'€.

'.htmlspecialchars_decode(stripslashes($g["text"])).'