note 44250 added to function.mysql-fetch-object
| From: | xenon54 at generationphp dot net | Date: | Mon, 19 Jul 2004 18:55:18 +0000 |
| Subject: | note 44250 added to function.mysql-fetch-object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73619@lists.php.net to get a copy of this message | ||
Don't use "SELECT COUNT(*) FROM foobar" to return a count of the table! You should
use "SELECT count(a_field) FROM foobar"
Why using all fields if you could use only one and be more effective?
----
Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-object.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44250
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44250&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44250&report=yes
Search -- http://master.php.net/manage/user-notes.php