I forgot to put the code I am trying:
<?
include ("config.inc.php");
$sql = "select * from visit WHERE log_in<>'0'";
$namo = mysql_query($sql);
$r = mysql_fetch_array($namo);
do{
printf("<center><font face=\"Arial\" size=\"2\"><b>%s %s</b> - %s - <b>%s</b></font></center>\n", $r["first_name"], $r["last_name"], $r["custid"], $r["log_in"]);
} while ($r = mysql_fetch_array($namo));
?>
This returns all records, not just the records with a value in "log_in"