I am pulling threads from a db,
$getthreads = mysql_query("SELECT * from threads WHERE subcat=" . $thread . "") or die(mysql_error());
while ($threads = mysql_fetch_array($getthreads)) {
if (mysql_num_rows($threads) > 0) {
Warning: mysql_num_rows() expects parameter 1 to be resource, array given in C:\xampp\htdocs\views\threads.php on line 30
but there is stuff in the db with correct info, here's my $threads var:
$thread = isset($_GET['thread']) ? $system->escape($_GET['thread']) : null;
does anything look wrong why it should be giving me that error?