note 39307 added to function.mysql-fetch-row

From: Date: Fri, 23 Jan 2004 21:58:12 +0000
Subject: note 39307 added to function.mysql-fetch-row
Groups: php.notes 
Request: Send a blank email to php-notes+get-64085@lists.php.net to get a copy of this message
Just wondering if someone can figure out what is wrong with this code: <? $username="Jack"; $password="password"; $database="mew"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM mew"; //$result=mysql_query($query); echo "<b><center>Database Output</center></b><br><br>"; $row=true; while ($row !=false) { $row=mysql_fetch_row(); $a=mysql_result($result,$i,"sequencename"); $b=mysql_result($result,$i,"sequence"); $c=mysql_result($result,$i,"HXB2Numbering"); echo "<b>$a $b </b> <br>Phone: $c<br>Mobile: <br><hr><br>"; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-row.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39307 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39307&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39307&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64085) next »