while ($row = mysql_fetch_array{result,MYSQL_ASSOC)) { /* display row for each listingid */ echo "<tr>\n; echo "<td>{$row['intersection1']}</td>\n"; }