Display Ads On This Blog

Banner Ads on scriptforphp.blogspot.com
Provides free php script for php developer.
Prix: € 5.00

Monday, May 4, 2009

How To Process MySQL Timestamp in PHP

$sql = "select UNIX_TIMESTAMP(date_field) as mydate from mytable where 1=1";
$rs = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_array($rs))
{
echo $row;
}

0 comments:

Post a Comment