I am a newbie, but I know the basics, and I am puzzled on why the below in bold, when added anywhere, will not even display the php
<?
$target=$values[Cat_ID];
$target2=$values[ID];
$query = mysql_query("select * From listings where Cat_ID = '$target'");
$count = mysql_num_rows($query);
for ($i = 1; $i <= $count; $i++){
extract(mysql_fetch_array($query));
// is this $i for current listing?
if ($ID == $target2) {
$ID_$i = $i;
}
echo "addLocation($Cat_ID,$i,$x,$y,\"$Name\",\"index.php?GoToID=$ID\",\"$Address1 $Address2 Phone: $Phone1\");";
echo "\n";
}
echo "showLocation($Cat_ID,$ID_$i)";
?>