$sql3="select min(id) as mid from project where id>$id";
$rez3=mysql_query($sql3,$dblnk);
$row3=mysql_fetch_array($rez3);
$next=$row3['mid'];
$sql3="select max(id) as maxid from project where id<$id";
$rez3=mysql_query($sql3,$dblnk);
$row3=mysql_fetch_array($rez3);
$prev=$row3['maxid'];
if($prev>0)
{
$bck="pBackAProjectBtn.jpg";
}
else
$bck="pBackAProjectBtn_none.jpg";
?>