The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do you use $db->num_rows?
Well I'm doing a script that allows users to only enter once. And I was wondering how to do this?
|
#2
|
||||
|
||||
You might want to put up some more info than that. It's tough to help when it's so vague. Plus, when you ask questions where coders hang out, you'll find that you get more of a responce and more help if you post what code you have.
|
#3
|
||||
|
||||
$db->num_rows($resource) is a function, it returns the number of found rows from the given results ($resource).
PHP Code:
Assuming your table has a userid field, do a query for that userid and if $db->num_rows() returns true then deny them access. As JumpD said, we can't really help much without more info. Good luck. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|