$username="xxx";
$password="xxx";
$database="xxx";
mysql_connect('xxxxxxxxxx',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = mysql_query("SELECT * FROM rgames_flash WHERE GameAlive = '1' ORDER BY GameID DESC LIMIT 0, 25");
$result=mysql_query($query);
$num=mysql_numrows($result) or die (mysql_error());
mysql_close();
$query = mysql_query("SELECT * FROM rgames_flash WHERE GameAlive = '1' ORDER BY GameID DESC LIMIT 0, 25");
$result=mysql_fetch_array($query);
print_r($result);
@LSC-Rob,
Thanks for the info, but i know all that as i am following the thread.
I was referring to the OP this line:
//$query = mysql_query("SELECT GameId, GameName, GameDesc FROM rgames_flash WHERE GameAlive = '1' ORDER BY GameID DESC LIMIT 0, 25");
to this
$query = "SELECT GameId, GameName, GameDesc FROM rgames_flash WHERE GameAlive = '1' ORDER BY GameID DESC LIMIT 0, 25";
$result=mysql_query($query);
As if the OP run the 1st query without $result with mysql_query, it will be the same as $result taking out mysql_query from $query.
I was just curious about that, because both are the same:
$query = mysql_query("SELECT GameId, GameName, GameDesc FROM rgames_flash WHERE GameAlive = '1' ORDER BY GameID DESC LIMIT 0, 25");
No $result above.
same as:
$query = "SELECT GameId, GameName, GameDesc FROM rgames_flash WHERE GameAlive = '1' ORDER BY GameID DESC LIMIT 0, 25";
$result=mysql_query($query);
Hope its clear as i was trying to focus on that point.