Re: mysql_fetch_array() doesn't work

From: Date: Tue, 25 Sep 2001 14:57:52 +0000
Subject: Re: mysql_fetch_array() doesn't work
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9516@lists.php.net to get a copy of this message
Look at the line number indicated by the error. A parse error has nothing to do with the mysql functions. Your code looks fine. What did you leave out with the ...'s? By the way, an easier way to do what you're doing here is: $res = mysql_query($query); while ($arr = mysql_fetch_array($res)) { ... } At 04:21 PM 9/25/2001 +0800, Web user wrote: ><? >...... >...... >$res=mysql_query($query); >$num=mysql_num_rows($res); >for($i=0; $i<$num; $i++){ >$arr=mysql_fetch_array($res); >... >} >...

« previous php.windows (#9516) next »