Multiple rows returned ?. . .

From: Date: Wed, 14 Mar 2001 17:16:34 +0000
Subject: Multiple rows returned ?. . .
Groups: php.general 
Request: Send a blank email to php-general+get-43881@lists.php.net to get a copy of this message
Hi I have little tiny script like so.. >--------- <? >$dbName = "somedb"; >$dbPass = "somepass"; >$dbUserName = "someuser"; >$host = "localhost"; >$db = mysql_connect($host, $dbUserName, $dbPass) or die ("Could not connect to database"); >mysql_select_db($dbName,$db); $sql = "SELECT * FROM downloads"; $result = mysql_query($sql, $db); $row = mysql_fetch_array($result); $row1 = mysql_fetch_array($result); ?> ----------- no I know there has to be a more efficient way of returning the $row and $row1 without writing it down like so.. anyone one can throw me a clue? :) Thank Andre

« previous php.general (#43881) next »