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); >... >} >... -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]