Problème boucle while php : rien ne s'affiche

Fermé
mugen - 23 nov. 2007 à 10:26
nEm3sis Messages postés 710 Date d'inscription lundi 20 août 2007 Statut Membre Dernière intervention 9 avril 2012 - 24 nov. 2007 à 00:49
Bonjour,

j'ai un problème concernant php,

je voudrais insérer une boucle while mais il ne m'affiche rien !!! :(

Voici mon code :


<?php
$connection=mysqli_connect("localhost", "root", "", "prog");

$resultformation=mysqli_query($connection,"select * from formation ;");

while($rowformation = mysqli_fetch_array($resultformation))
{
echo $rowformation["ecole"]. "<br/>".$rowformation["specialite"]." <span class = "bold"> ".$rowformation["diplome"]."</span>"";
}
?>

Merci pour votre aide
A voir également:

1 réponse

nEm3sis Messages postés 710 Date d'inscription lundi 20 août 2007 Statut Membre Dernière intervention 9 avril 2012 113
24 nov. 2007 à 00:49
1) tu a un " en trop a la fin
2) je ne suis pas sur mais ca ne macherai pas mieu avec des ' a la place des " ?
3) est-ce normal le ; ligne 4 ?
4) je ne connai pas mysqli donc dsl si jsuis pas sur


<?php
$connection=mysqli_connect("localhost", "root", "", "prog");

$resultformation=mysqli_query($connection,"select * from formation");

while($rowformation = mysqli_fetch_array($resultformation))
{
echo $rowformation["ecole"].'<br/>'.$rowformation["specialite"].' <span class = "bold"> '.$rowformation["diplome"].'</span>'";
}
?>
0