require_once($_SERVER['DOCUMENT_ROOT'].'/inc/cab.php');
/*$varsFormDef=array('id;0');
extract(inicVariaveisForm($varsFormDef));*/
$id = (!empty($_GET['id'])) ? (int)$_GET['id'] : 0;
$sql="SELECT * FROM portfolio WHERE id=$id";
$reg=mysql_fetch_assoc(@mysql_query($sql));
$titulo=$reg['nome'];
$texto=$reg['descricao'];
$foto=$reg['foto'];
$urlFoto=URL_FOTOS_PORTFOLIO.'big'.$reg['foto'];
//$foto=($foto!='') ? "
" : '';
setlocale(LC_TIME, 'pt_PT');
$data=utf8_encode(strftime('%A, %d %B, %Y', $reg['data']));
//Retornar as fotos do portfolio
$sql="SELECT * FROM fotos_portfolio WHERE id_portfolio=$id ORDER BY nome ASC";
$dset=@mysql_query($sql);
?>
echo $texto ?>
Data: echo $data ?>
Download: