<!-- BEGIN menu -->
Catégories:<br />
<a href="index.php?page=album&user=romain&cat={cat.ID}"> {cat.NOM_CAT} </a><br />
<!-- END user -->
//conecxion mysql
#Définition du template
$template = new Template('./');
$template->set_filenames(array(
'body' => 'template1.tpl'
));
#Fin definition du template
//on sort les cat (menu gauche)
$sql='select id, nom_cat from photos_categories where pseudo="'.$_GET['user'].'"';
$res =@mysql_query($sql);
while($rep = mysql_fetch_array($res)){
#tempalte
$template->assign_block_vars('cat', array(
'ID' => $rep['id'],
'NOM_CAT' => $rep['nom_cat']
));
}
$template->pparse("body"); ;
#template