ça :
<?
function GetLastID($Table = ´´,$Field = ´´)
{
$R=sybase_query("SELECT $Field FROM $Table ORDER BY $Field DESC LIMIT 0,1");
$F=sybase_fetch_array($R);
return $F[$Field];
}
/* tu le laisse tel quel */
/* et après tu utilise la fonction */
GetLastID(´nom_de_la_table´, ´nom_du_champ´);
/* tu modif "nom_de_la_table" et "nom_du_champ"... */
? >