err. alwasy something simple. i forgot the ;
ok no error comes up now.
<?
$connection = mysql_connect("localhost","username","password") or die('Could not connect to the database server');
$db = mysql_select_db("propertysql", $connection) or die ("Unable to select database.");
$sql="SELECT IF(MAX(p.date) > MAX(t.page_date),MAX(p.date),MAX(t.page_date)) maxdate FROM property p, tblpages t";
$sql_result_dev = mysql_query($sql,$connection) or die (mysql_error());
?>
how do i print the date in the format of 2005-04-19 10:39:41
cheers aron