Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

After purchasing with us the download link will be delivered to your forum message box.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: latest member code  (Read 610 times)

Jawz

  • Basic Member
  • *
  • Reputation Power: 11
  • Jawz has no influence.
  • Offline Offline
  • Posts: 17
    • View Profile
latest member code
« on: December 12, 2009, 08:08:03 AM »
i want to make a latest member code

i have:
Code: [Select]
echo "Latest Member: <a href='viewuser.php?u={$r['username']}";

but it doesn't show the latest member can someone please help
Logged

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Re: latest member code
« Reply #1 on: December 12, 2009, 08:10:53 AM »
Last member to signup?
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: latest member code
« Reply #2 on: December 12, 2009, 08:25:16 AM »
try this:
Code: [Select]
<?php // colours only.
$r $db->fetch_row($db->query("SELECT userid, username FROM users ORDER BY userid DESC LIMIT 1"));
echo 
sprintf("Latest member: <a href='viewuser.php?u=%u'>%s</a><br />"$r['userid'], $r['username']);
Logged
Project Choosen - 10%
Daniel - Hanson . Com

Jawz

  • Basic Member
  • *
  • Reputation Power: 11
  • Jawz has no influence.
  • Offline Offline
  • Posts: 17
    • View Profile
Re: latest member code
« Reply #3 on: December 12, 2009, 08:54:31 AM »
thanks
Logged

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: latest member code
« Reply #4 on: December 12, 2009, 09:17:23 AM »
You wernot definig what $r was ;) thats what i use to do, thought it was already there.
Logged
Project Choosen - 10%
Daniel - Hanson . Com
 


This forum is now closed and has moved to a new location! Click here to find out why.