mySQL top 10
#8

I was too lazy to use a split function in this example, but because mysql_fetch_row_format has multiple results to return, it returns them in this format:

Code:
Player_Name|4
The sscanf splits that string in to a string and an integer so you can use iScore and szName. It splits it by the '|' (vertical pipe) character.

I just edited the code now because I missed something in the sscanf code.
Reply


Messages In This Thread
mySQL top 10 - by MP2 - 18.07.2011, 11:44
Re: mySQL top 10 - by Lorenc_ - 18.07.2011, 12:06
Re: mySQL top 10 - by MP2 - 18.07.2011, 12:11
Re: mySQL top 10 - by Calgon - 18.07.2011, 12:24
Re: mySQL top 10 - by MP2 - 18.07.2011, 12:30
Re: mySQL top 10 - by Calgon - 18.07.2011, 12:37
Re: mySQL top 10 - by MP2 - 18.07.2011, 12:41
Re: mySQL top 10 - by Calgon - 18.07.2011, 12:44
Re: mySQL top 10 - by MP2 - 18.07.2011, 13:10
Re: mySQL top 10 - by Calgon - 18.07.2011, 13:12

Forum Jump:


Users browsing this thread: 6 Guest(s)