Welcome Guest, Not a member yet? Register   Sign In
Query help with scores
#9

[eluser]Kevv[/eluser]
Yeah, mysql_query() returns a resource (think of it like a resultset pointer), to get the actual data you then need to fetch each row like I've done above or you can grab them all at once;
Code:
$result = mysql_query($query);
$leaderboard = mysql_fetch_array($result);
There may well be a better way tbh I'm not overly familiar with "raw" mysql access.


Messages In This Thread
Query help with scores - by El Forum - 04-29-2010, 05:07 AM
Query help with scores - by El Forum - 04-29-2010, 05:42 AM
Query help with scores - by El Forum - 04-29-2010, 06:33 AM
Query help with scores - by El Forum - 04-29-2010, 07:04 AM
Query help with scores - by El Forum - 04-29-2010, 08:00 AM
Query help with scores - by El Forum - 04-29-2010, 08:03 AM
Query help with scores - by El Forum - 04-29-2010, 01:00 PM
Query help with scores - by El Forum - 04-30-2010, 02:47 AM
Query help with scores - by El Forum - 04-30-2010, 03:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB