I use wordpress as my platform, and I add a additional database for customize, when I use a query from that database and conversion a data format, the wordpress echo fault: Warning: date() expects parameter 2 to be long, string given in D:\www\forums\wordpress\wp-content\plugins\exec-php\includesuntime.php(42) : eval()’d code on line 249
, how to solve?
<?php
...
while($result = mysql_fetch_array($resultset))
{
$date = date('Y/m/d g:i A',$result['date']);//line 249
...
?>
<div class="date"><?=$date;?></date>
...
<?php
}
?>