M0B2 Posted March 17, 2009 Posted March 17, 2009 i thought it would be neat to see the list of donators in your game, i know many people already have this butto those who dont here it is create a file called donatorview.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. link this to any where in the game give me a +1 if you like lol :-D Quote
Eternal Posted March 17, 2009 Posted March 17, 2009 Re: Donators List dude i see a banning of your account soon. Use the [ code ] tags Quote
Miniman Posted March 17, 2009 Posted March 17, 2009 Re: Donators List You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This is done quickly, if there is any errors let me know I'll fix them. This is for V2, if you want it in V1 I'll convert it :) Quote
Dave Posted March 17, 2009 Posted March 17, 2009 Re: Donators List dude i see a banning of your account soon. Use the [ code ] tags Is there now a rule about you having to use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
John99 Posted March 17, 2009 Posted March 17, 2009 Re: Donators List $q = $db->query(sprintf("SELECT donatordays,userid,level,username FROM users WHERE donatordays > 0 ORDER BY donatordays")); Yours ^ Mine below This one looks a bit nicer. :P in my own way lol You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Miniman Posted March 17, 2009 Posted March 17, 2009 Re: Donators List Was there any need for that at all? You added some () and ``. Nice xD Quote
AlabamaHit Posted March 17, 2009 Posted March 17, 2009 Re: Donators List $q = $db->query(sprintf("SELECT donatordays,userid,level,username FROM users WHERE donatordays > 0 ORDER BY donatordays")); Yours ^ Mine below This one looks a bit nicer. :P in my own way lol You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ya'lls You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Mine Why are either of you using sprintf? Its just not needed there, lol. And you don't need to Quote a Number like that. the '0' you can cause errors in some cases. Quote
Karlos Posted March 17, 2009 Posted March 17, 2009 Re: Donators List Warning - while you were reading 2 new replies have been posted. You may wish to review your post. Well I was just about to mention about why using sprintf() for that.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. :-P Quote
Miniman Posted March 17, 2009 Posted March 17, 2009 Re: Donators List I used sprintf() simply because I was rushing, hardly looking at what I was even doing. I was expecting to be selecting data that include a $_GET or $_POST. Didn't realise :lol: I messed up, Now I must punish myself. Quote
AlabamaHit Posted March 17, 2009 Posted March 17, 2009 Re: Donators List I messed up, Now I must punish myself. lmao Quote
John99 Posted March 17, 2009 Posted March 17, 2009 Re: Donators List I only copyed his, i didnt take sprintf out.. but really theres no need to sprintf it Quote
Miniman Posted March 17, 2009 Posted March 17, 2009 Re: Donators List I only copyed his, i didnt take sprintf out.. but really theres no need to sprintf it You copied ut and added ``. That's it. If you knew sprintf() wasn't meant to be there you'd of taken it out. You don't realise what your saying/doing 90% of the time, do you? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.