note 106486 rejected from function.mysql-num-rows by tularis

From: Date: Mon, 14 Nov 2011 14:34:12 +0000
Subject: note 106486 rejected from function.mysql-num-rows by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184430@lists.php.net to get a copy of this message
Note Submitter: ivanchauma at gmail dot com ---- i have a problem using : mysql_connect($hostname, $username, '') or die ("Database CONNECT Error (line 18)"); mysql_select_db("ITC1"); $result = mysql_query("SELECT * FROM pauta where user=".$_SESSION['user']); if (mysql_num_rows($result)) { while ($qry = mysql_fetch_array($result)) { echo " <table border='1' width='100%' cellspacing='0' cellpadding='0'> <tr> <td width='16%'>$qryy[Nome]</td> <td width='8%'>$qry[Portugues]</td> <td width='9%'>$qry[RI]</td> <td width='9%'>$qry[Matematica]</td> <td width='7%'>$qry[SD]</td> <td width='8%'>$qry[Hardware]</td> <td width='3%'>$qry[LTP]</td> <td width='11%'>$qry[PP]</td> <td width='8%'>$qry[PH]</td> <td width='10%'>$qry[media]</td> <td width='10%'>$qry[falta]</td> </tr> </table> "; i have got this error : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\33\Test.php on line 76

« previous php.notes (#184430) next »