Re: Array help.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



		
On Jul 30, 2010, at 3:03 PM, Paul Halliday wrote:

>> 
>> Paul-
>> 
>> Why are those values not defaulted to 0 in the database?
>> 
>> Regards,
>> 
>> -Josh
>> 
>> 
> 
> They are defaulted, the query is grouping:
> 
> select count(status) as count, status from table group by status order
> by status desc;

Paul-

Correct, so stuff with a status of 0 will still show up unless I'm missing something.

Regards,

-Josh
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux