ciao e grazie , mi consigli di inserire il tutto in un ciclo while ho provato a mettere un contatore tipo
Codice PHP:
$cnt=0;
$resdep = array();
$resdep = mysql_fetch_array($sql);
$smarty->assign("departarray" , $departarray = array("departid"=> intval($resdep[$cnt]['departid']),
"departname"=>$resdep[$cnt]['departname'],
"departdescription"=>$resdep[$cnt]['description'],
"departelastactivity"=>intval($resdep[$cnt]['lastactivity']),
"departlastchange"=>intval($resdep[$cnt]['lastchange']),
"departenabled"=>intval($resdep[$cnt]['enabled']),
"departstaffid"=>intval($resdep[$cnt]['staffid']),
"departid_group"=>intval($resdep[$cnt]['id_group']),
"departdisplayorder"=>intval($resdep[$cnt]['displayorder'])
));
$cnt++;
pero non capisco perche mi stampa numeri