- Code: Select all
$getSearch = mysql_query("SELECT region, rests.name FROM delivery_areas, rests WHERE city = 'Ciccagna' AND rest_id = rests.id");
while ($search = mysql_fetch_array($getSearch)) {
echo $search[region];
echo $search[rests.zip];
}
I get the exact value of "region" but I do not get anything for "rests.name".
Problem is the syntax of echo $search[rests.zip];
I've try with
$restzip = rests.zip; -> $search[$restzip];
echo $search['rests.zip'];
echo $search["rests.zip"];
But it does not work. What's wrong?
Thanks in advance.


