I personally use wordpress as my platform, and that i give a additional database for personalize, after i make use of a query from that database and conversion an information 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\includes\runtime.php(42) : eval()’d code on line 249, how you can 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
}
?>
<?php

while($result = mysql_fetch_array($resultset))
{
    $date = date('Y/m/d g:i A',strtotime($result['date']));//line 249
...

Try wrapping your result date in strtotime()

do this:

<?php
...
while($result = mysql_fetch_array($resultset))
{
if($result['date']){$date = date('Y/m/d g:i A',$result['date']);}else{$date="empty";}
...
?>
<div class="date"><?=$date;?></date>
...
<?php
}
?>

maybe its just sometimes null!

Ideally, you'll have the ability to customize the query to come back a UNIX_TIMESTAMP..

SELECT UNIX_TIMESTAMP(date) AS `timestamp` ...

then you'll have the ability to pass the timestamp towards the date() function normally.