Ok I have myself confused here.
I have this code it works perfect
$result = mysql_query("SELECT * FROM e_track_access_log WHERE member_id>0 ORDER BY
datetime_accessed DESC LIMIT 0,20");
?>
<?php
while($rows=mysql_fetch_array($result)){
?>
I fetches all in field member_id that is greater than 0
All i have done now is changed the following
$result = mysql_query("SELECT * FROM e_track_access_log WHERE dealer=Demo ORDER BY
datetime_accessed DESC LIMIT 0,15");
?>
<?php
while($rows=mysql_fetch_array($result)){
?>
All I want it to do is only display dealer info that has Demo in it.
This is the error I received
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in
/home/www/controldemo.e-track.co.za/control_main.php on line 177