$books = $db->get_results("SELECT * FROM books");
$books_count = count($books);
>>58061590
>$books = $db->get_results("SELECT * FROM books");
>not using SELECT count(*) FROM books
kys
>>58061717
That's the joke you retard.
>>58061717
Wouldn't a faster way of doing this be SELECT count(id) FROM books because then you don't have to load all of the columns?
>>58061846
Next time run the query and ANALYZE to find out ;)
>>58061590
Typical perl retardation
>>58062016
except its php
>>58062087
PHP stands for Perl Hypertext Processor
>>58062142
all this years and we never knew
>>58062245
Every PHP function call spawns a separate Perl interpreter process. Parameters are passed via environment variables.
>>58061717
Are you a wizard?