The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
If i run a query, to select all the forums that a user moderates, how can i check to see if the result is nothing?
PHP Code:
Would that work? How would i do it if not? |
|
#2
|
||||
|
||||
|
make it more OO please like this
PHP Code:
|
|
#3
|
||||
|
||||
|
No, that won't work.
Code:
$access = $DB_site->query_first("Your query here");
if (!$access) {
echo 'No access';
exit;
}
|
|
#4
|
|||
|
|||
|
Quote:
- I normally do use the layed out format, but when typing i dont bother formatting my code.FireFly : Thanks
|
|
#5
|
||||
|
||||
|
well if you can read it, but for other coders its better that way
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|