the tablename has been defined, the query does work but num_rows doesn't 🙁
heres the error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in blahblahblah
$rows = mysql_num_rows(mysql_query("SELECT * FROM $tablename"));
once it works but now it doesnt, i even tried using this:
$query = "SELECT COUNT(*) AS cnt FROM ".$tablename."";
$result = mysql_query($query);
$rows = mysql_result($result,0,"cnt");
but that gives an error also