ho modificato il tutto inserendo le variabili dentro un ciclo while , ma mi stampa un unico valore
Codice PHP:
while( $resdep = mysql_fetch_array($sql)){
$smarty->assign("departarray" , $departarray = array("departid"=> intval($resdep['departid']),
"departname"=>$resdep['departname'],
"departdescription"=>$resdep['description'],
"departelastactivity"=>intval($resdep['lastactivity']),
"departlastchange"=>intval($resdep['lastchange']),
"departenabled"=>intval($resdep['enabled']),
"departstaffid"=>intval($resdep['staffid']),
"departid_group"=>intval($resdep['id_group']),
"departdisplayorder"=>intval($resdep['displayorder'])
));
}