Re: If you ever had a Vic20

From: Date: Fri, 15 Aug 2003 18:44:13 +0000
Subject: Re: If you ever had a Vic20
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-159764@lists.php.net to get a copy of this message
mysql_num_rows($news) On Fri, 2003-08-15 at 17:42, John Taylor-Johnston wrote: > OK, > I tried this, but am getting this error: > Warning: Wrong parameter count for mysql_num_rows() in /.../testals.php on line 189 > 189> if (mysql_num_rows() == 1) > What's up? > John > > $myconnection = mysql_connect($server,$user,$pass); > mysql_select_db($db,$myconnection); > > $news = mysql_query("select StudentId from $table where StudentID = $StudentID"); > > if (mysql_num_rows() == 1) > include ("./html/access_error.htm"); > else > include ("./html/registration.htm"); > > >

« previous php.general (#159764) next »