php - 2 Different outputs (Chrome and IE/FIREFOX) -


when load database value this:

<?=$list[time]?>   

in chrome output is: 2013-10-07t14:27:56 in firefox output is: 0000-00-00 00:00:00

how possible?? $list[time] timestamp value in database.

my code:

$lsel_list = mysql_query("select * users id = '$id' order id asc"); while ($list = mysql_fetch_array($lsel_list)) {    echo"$list[time]"; }  

field time timestamp in database time. (2013-10-07 14:28:35)

try : echo date("y m d",strtotime($list[time])); 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -