The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
why won't this work?
PHP Code:
Code:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in \includes\db_mysql.php on line 312 |
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
Using query fiirst returns the first row, not the identifier.
Edited: |
|
#4
|
|||
|
|||
|
You should use COUNT(), not SELECT *.
[sql] SELECT COUNT(unique id column name) AS totalcount FROM grps WHERE title LIKE "expression% [/sql] It will return a single result row with a column name of totalcount containing the number of matching rows. Don't forget TABLE_PREFIX. |
|
#5
|
||||
|
||||
|
it's because he wrote "SELECT*" instead of "SELECT *"
|
|
#6
|
||||
|
||||
|
Quote:
Quote:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|