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
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
A voir également:
- Problème boucle while php : rien ne s'affiche
- Easy php - Télécharger - Divers Web & Internet
- Boucle cmd - Forum Programmation
- Php natif - Forum PHP
- Mon pc s'allume et s'éteint en boucle ✓ - Forum Matériel & Système
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
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>'";
}
?>
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>'";
}
?>