Basing a boolean function on MySQL data
#9

Quote:
Originally Posted by Vince
Посмотреть сообщение
That has no effect at all. COUNT(*) simply counts all the rows in the table, while COUNT(key) counts all the rows in the table for which key is not null. And given that the primary key is never null they will just return the same thing.
It's just a "good programming habit".

@Last post, then use mysql_query to make the query, and cache_get_row_int to retrieve rows data.
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_query
Make sure you delete the cache after using it.
Reply


Messages In This Thread
Basing a boolean function on MySQL data - by Partner - 30.10.2014, 22:07
Re: Basing a boolean function on MySQL data - by Djole1337 - 30.10.2014, 22:13
Re: Basing a boolean function on MySQL data - by GWMPT - 30.10.2014, 22:21
Re: Basing a boolean function on MySQL data - by Partner - 31.10.2014, 08:02
Re: Basing a boolean function on MySQL data - by Partner - 31.10.2014, 09:09
Re: Basing a boolean function on MySQL data - by GWMPT - 31.10.2014, 11:02
Re: Basing a boolean function on MySQL data - by Vince - 31.10.2014, 11:10
Re: Basing a boolean function on MySQL data - by Partner - 31.10.2014, 11:17
Re: Basing a boolean function on MySQL data - by GWMPT - 31.10.2014, 11:19

Forum Jump:


Users browsing this thread: 4 Guest(s)