Jump to content


Newest Member


3 replies to this topic

#1 Chris.

    Young Padawan

  • Members
  • Pip
  • 129 posts
  • Gender:Male

Posted 14 October 2006 - 08:56 PM

I was wondering how could I make a thing that displays the newest member? like IPB has at the bottom. Thanks.

#2 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 14 October 2006 - 08:59 PM

Quickest and easiest way would be to use IPBSDK.
With that you can do ever so much more as well, lol. :rolleyes:

Now, if you are talking about using your own member system and displaying newest member, simple as using a basic MySQL query like so.
$newest_member = mysql_query("SELECT * FROM `members` LIMIT 1) or die(mysql_error());
:doh:

#3 Mr. Matt

    Moderator

  • P2L Staff
  • PipPipPipPip
  • 1,945 posts
  • Gender:Not Telling

Posted 15 October 2006 - 02:21 AM

That would display the very first member :)

$newest_member = mysql_query("SELECT * FROM `members` ORDER BY `id` DESC LIMIT 1) or die(mysql_error());

Matt

#4 Chris.

    Young Padawan

  • Members
  • Pip
  • 129 posts
  • Gender:Male

Posted 15 October 2006 - 01:57 PM

thanks, worked perfect





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users