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");
$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? :)

PHP Database 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]

Reply via email to