mysql_affected_rows() does not work with SELECT statements; only on statements which MODIFY records. To retrieve the number of rows returned by a SELECT, use mysql_num_rows().
i actually made it work, but now my if/elseif/else statement isn't working.
$row = mysql_fetch_row($count);
if ($count == 0) { echo "Add Records"; }
elseif ($count > 0) { echo "$row[0] Records"; }
else { echo "Add Records"; } ?>
even for an instance where $count=0 i get "# records"...
almost there. what's wrong with my statement that would make that happen?
thanks too for all the help, i'm so close to being completed with this.