![]() |
num_rows()?
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 |
PHP Code:
|
Using query fiirst returns the first row, not the identifier.
Edited: |
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. |
it's because he wrote "SELECT*" instead of "SELECT *"
|
Quote:
Quote:
|
All times are GMT. The time now is 08:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|