OK, so I started playing with PDO since some ppl around here told me not to use mysql_query anymore, now I have another problem.
I started to change my other functions because some of my pages aren’t showing any text any more, i have modified to PDO and this does not produce any text whatsoever:
$house_sq = $_GET['house_sq'];
$query = $db->prepare("select house_sq, house_address, house_po, house_city_id from houses_info where house_sq=$house_sq");
$query->execute(array($house_sq => $house_sq));
$rows = $query->fetchAll(PDO::FETCH_ASSOC);
print_r($rows);
doesn’t matter what number is there, is now showing anything, it works with mysql_query …
That’s because you have to bind the value
:house_sq