i get the error
Unknown column 'empty_locations.name' in 'on clause'
i tried to add the column to the table, but then i just get the white screen of death.
$get_locations = mysql_query("SELECT locationid, date FROM empty_locations
INNER JOIN location ON empty_locations.name=location.location_name")
or die ("select failed " . mysql_error())
;
echo '<strong>Empty Locations</strong><BR>';
while ($row = mysql_fetch_array($get_locations)){
$locationid = $row['locationid'];
$date_open = $row['date'];
$name = $row['location_name'];
echo '<font size=2><i>Date Open:</i></font> ' . $date_open . '';
echo' <font size=2><i>Field:</i></font> ' . $name . '';
}
i guess my problem now is that i am unfamilar with how to display data from a query like that.
i've tried several variations in the while loop, but the script still only gets as far as
echo '<strong>Empty Locations</strong><BR>';
any ideas??
thanks
chris