Jump to content
MakeWebGames

Recommended Posts

Posted

does anyone know how i would put the top 5 users onto my login page like this

1. Username | Level

2. Username | Level

3. Username | Level

4. Username | Level

5. Username | Level

Here is my login if you want to edit and post back here.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

IF YOU CAN DO THIS PLEASE CAN YOU PUT IT UNDER MY 'CONTACT US' PLEASE THANKS

Posted

Re: [Mccodes V2] Top 5 Users

Here ya go.. hope this helps..

I just reposted for you. I had forgot to add the level.. it's there now..

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [Mccodes V2] Top 5 Users

But will that look like that in a table

1. Username | Level

2. Username | Level

3. Username | Level

4. Username | Level

5. Username | Level

And i do not want it to show NPC's

Posted

Re: [Mccodes V2] Top 5 Users

Use POG's...

You'll see no NPC's amd it show's it like:

1. Username | Level

2. Username | Level

3. Username | Level

4. Username | Level

5. Username | Level

But in a table.

Posted

Re: [Mccodes V2] Top 5 Users

POG's one doesent work

i put it under the 'contact us' and it comes up with this error:

Parse error: syntax error, unexpected T_STRING in /*******/******/**********/login.php on line 190

Any ideas

Posted

Re: [Mccodes V2] Top 5 Users

No this one doesent work it shows the whole login normally but where the top 5 users is meant to be it says this error

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/specks/public_html/login.php on line 198

# Username Level

Posted

Re: [Mccodes V2] Top 5 Users

change this

 

$result = mysql_query("SELECT username,id,level FROM users WHERE user_level != 0 ORDER BY level ASC LIMIT 5");

with this..

$result = mysql_query("SELECT `username`,`id`,`level` FROM `users` WHERE `user_level` != 0 ORDER BY `level` ASC LIMIT 5") or die(mysql_error());

and see what it says :)

Posted

Re: [Mccodes V2] Top 5 Users

i am sure he could have added this

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

to my post. it would have removed the NPC's.. other wise it does show in the existing table.. under contact us.. was tested and works.. but anyways .. you welcome..

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...