![]() |
Quote:
Code:
<?php Easy. And works. [Edited by mrogish on 09-11-2000 at 01:22 AM] |
That way works as well - one of the books I have says that mysql_num_rows function isa better way, but what you have is better then using the threadcount field.
|
lol!
|
?
|
Quote:
1. count is a built in SQL function -- so it's far more efficent than selecting everything in the table. 2. Once you get a result you directly access the array $result[ somevar ]; rather than executing another function (mysql_num_rows( )) -- this would shave off some overhead on PHP's account I would believe. 3. That's what the count( ) function is supposed to do! :) 4. There is no number 4! But, all of the methods work, it's up to whomever wanted it in the first place to decide! :) |
Thanks guys... :)
|
I guess your right, cause SQL functions are faster then PHP functions.
|
All times are GMT. The time now is 05:37 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:
|