Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.
| From: | Richard Davey | Date: | Wed, 06 Jul 2005 17:43:45 +0000 |
| Subject: | Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial. | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218220@lists.php.net to get a copy of this message | ||
Hello Marek,
Wednesday, July 6, 2005, 3:15:58 PM, you wrote:
MK> You can select just the id, and provided that the query returns just
MK> zero or one row, you can spare one function call.
Sure that will work fine - but I fail to see how it will save a
function call. You either select, check there was no mysql error and
then check numrows. Or you select count, check there was no mysql
error and check the count value. I fail to see how your method
provides on less function call, but please elaborate :) (and hey,
select count = less bytes transferred from MySQL to PHP, regardless ;)
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov