Я скачал xampp. С Мампом проблем не было. При использовании amma xampp коды mysl записываются на экране. Как я могу решить эту проблему?
https://prntscr.com/plrl6m
https://prntscr.com/plrl9s
:estatetype';
// Əgər əmlak növü seçilibsə onu seçilmiyibsə hamısını axtar
$itemtype = $_POST['itemtype'] ? 'type=:type' : 'type>:type' ;
// Əgər kirayə vəya satış seçilibsə onu seçilməyibsə hamısını axtar
$maxprice = $_POST['maxprice'] ? _str_replace_price($_POST['maxprice']) : 1000000000;
// Əgər maksimum qiymət qoyulubsa nöqələri sil qoyulmayıbsa 1000000000 qəbul et
$maxroom = empty($_POST['maxroom']) || $_POST['maxroom']==5 ? 1000 : $_POST['maxroom'];
$scan=$db->prepare("SELECT *, items.id as iid, items.name as iname
, estatetype.name as ename, items.seo as iseo
from
items
INNER JOIN estatetype ON estatetype.id=items.estatetype
where $estatetype and $itemtype and price>=:minprice
and price<=:maxprice and room>=:minroom
and room<=:maxroom");
$scan->execute(array('estatetype'=>$_POST['estatetype'],
'type'=>$_POST['itemtype']
, 'minprice'=>_str_replace_price($_POST['minprice'])
, 'maxprice'=>$maxprice, 'minroom'=>$_POST['minroom']
, 'maxroom'=>$maxroom));
$scount=$scan->rowCount();
$rscan=$scan->fetchALL();
} else
{ if (isset($_GET['room']))
{ if ($_GET['room']<5)
{ $scan=$db->prepare("SELECT *, items.id as iid
, items.name as iname, estatetype.name as ename
, items.seo as iseo
from items
LEFT JOIN estatetype ON estatetype.id=items.estatetype
where items.estatetype=:estatetype
and items.status=:status
and room=:room
order by items.id DESC");
$scan->execute(array('estatetype'=>$_GET['estatetype'],
'status'=>1, 'room'=>$_GET['room']));
$scount=$scan->rowCount();
$rscan=$scan->fetchALL();
} elseif($_GET['room']>4){
$scan=$db->prepare("SELECT *, items.id as iid, items.name as iname,
estatetype.name as ename, items.seo as iseo
from items LEFT JOIN estatetype ON estatetype.id=items.estatetype
where items.estatetype=:estatetype
and items.status=:status
and room>:room
order by items.id DESC");
$scan->execute(array('estatetype'=>$_GET['estatetype']
, 'status'=>1, 'room'=>4)); $scount=$scan->rowCount();
$rscan=$scan->fetchALL(); }
}else{ $scan=$db->prepare("SELECT *, items.id as iid
, items.name as iname, estatetype.name as ename, items.seo as iseo
from items LEFT JOIN estatetype ON estatetype.id=items.estatetype
where items.estatetype=:estatetype
and items.status=:status order by items.id DESC");
$scan->execute(array('estatetype'=>$_GET['estatetype'], 'status'=>1));
$scount=$scan->rowCount();
$rscan=$scan->fetchALL(); } } ?>