help with a bucle

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

 



Hi, i have in my mysql db one table columm, some think like this:

day    reporte
---    -------
1        45
2        56
4        78
6        89
7        90
etc...

How can i print all the value from 'reporte' columm depending the 'day'
columm, and if there is not exist a day print 0 value, for example:

day 1 ----- reporte 45
day 2 ----- reporte 56
day 3 ----- 0
day 4 ----- reporte 78
day 5 ----- 0
etc...

Sorry for my english


-- 
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.

-- 
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