$query->result() and Mysql TIME_FORMAT queries |
[eluser]Hockeychap[/eluser]
The quickest way to get to any function based mysql field (i.e. time_format, date_format etc) is to use an field alias. Have a look http://dev.mysql.com/doc/refman/5.5/en/select.html and search for "A select_expr can be given an alias using AS alias_name" ... That should help ![]() Basically if you make your query Code: SELECT you can use "formattedstart" and "formattedend" in your array access. HTH Justin |
Messages In This Thread |
$query->result() and Mysql TIME_FORMAT queries - by El Forum - 08-05-2011, 11:47 AM
$query->result() and Mysql TIME_FORMAT queries - by El Forum - 08-05-2011, 03:37 PM
|