ok, I know that to list how many rows there are to use:
echo mysql_num_rows($result);
but is there a way to only list the rows that have data in a certain field?
i am using:
$result = mysql_query("SELECT fieldname FROM dbname",$db);
for the query which is how to only get data from that field right? But back to my original question, how do I list ONLY the rows with data in that field?