The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Small problem with LIMIT
I'm trying to get the last six members to join my forums to show up on the forum home.. I have the basic idea working now, but for some reason the LIMIT isn't working for me.. It's only returning one result.. AKA the last registered member, rather than the last six.
PHP Code:
Thanks, |
#2
|
|||
|
|||
PHP Code:
You will need to use query_read, and then a while loop with fetch_array to loop through the results. |
#3
|
||||
|
||||
Ah, I see..
Okay, I tried this new approach out but I'm still getting only one result (I have two registered users right now as I'm developing the site..), only user id2 is showing up.. PHP Code:
Any ideas?? Thanks, Marco |
#4
|
|||
|
|||
You are using the same variable name $newest_members for both the SQL-resource and the variable to hold you template output.
|
#5
|
||||
|
||||
That did it.. haha.. man, PHP is a tricky thing..
Thanks a lot Marco! |
#6
|
|||
|
|||
Nahh PHP is straight forward, the tricky thing is the coder
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|