Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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 :)

Posted

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.

Posted

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.

Posted

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.

Posted

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

Posted

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.

Posted

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...