Bonjour,

J'ai un p'tit souci de syntaxe.

Voici le code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
$tab=array();
$sql=mysql_query("SELECT id, nom FROM tblIdentite");
while($row=mysql_fetch_array($sql))
{
array_push($tab,$row);
}
print_r($tab);
Je désire obtenir un tableau $tab du type :
$tab=array(
array(1,"aaa"),array(2,"bbb"), array(3,"ccc"), etc
);
Mais je ne l'obtiens pas !
Merci pour vos commentaires