$query1 = "SELECT * FROM ".$prefix."news WHERE users_id = '".$user."'"; $query2 = "SELECT * FROM ".$prefix."news "; $ile1 = mysqli_num_rows(query1); $ile2 = mysqli_num_rows(query2);
Notice: USE of undefined constant query2 - assumed 'query2' IN ... ON line 191 Warning: mysqli_num_rows() expects parameter 1 TO be mysqli_result, string given IN ....p ON line 191
191 linia to doklanie ta ostatnia z pokazanych, czy z tymi zapytaniami jest cos nie tak?