Pb php
Résolu
yusukessj
Messages postés
267
Date d'inscription
Statut
Membre
Dernière intervention
-
Py_rex Messages postés 241 Date d'inscription Statut Membre Dernière intervention -
Py_rex Messages postés 241 Date d'inscription Statut Membre Dernière intervention -
Bonjour,voila mon script ca marche pas
je vois rien d'anormal vraiment je vous remercierais pur votre aide, merci
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>Titre de ma page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="namo_guide" content="h96 h97">
</head>
<body>
<p><form action="etat_absent_cible.php" method="post">
</p>
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("item");
$query="SELECT DISTINCT mode_formation.LIBL_MODE, mode_formation.NUM_MODE
FROM mode_formation
";
$result=mysql_query($query) or die ("pb requette ".mysql_error());
echo '<select name="mode_formation">';
while ($ligne=mysql_fetch_array($result))
{
echo '<option value="'.$ligne['NUM_MODE'].'">'.$ligne['LIBL_MODE'].' </option>';
}
echo '</select>';
?>
</form>
</body>
</html>
je vois rien d'anormal vraiment je vous remercierais pur votre aide, merci
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>Titre de ma page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="namo_guide" content="h96 h97">
</head>
<body>
<p><form action="etat_absent_cible.php" method="post">
</p>
<?php
mysql_connect("localhost", "root", "");
mysql_select_db("item");
$query="SELECT DISTINCT mode_formation.LIBL_MODE, mode_formation.NUM_MODE
FROM mode_formation
";
$result=mysql_query($query) or die ("pb requette ".mysql_error());
echo '<select name="mode_formation">';
while ($ligne=mysql_fetch_array($result))
{
echo '<option value="'.$ligne['NUM_MODE'].'">'.$ligne['LIBL_MODE'].' </option>';
}
echo '</select>';
?>
</form>
</body>
</html>
A voir également:
- Pb php
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour a la ligne php - Forum Webmastering
- Alert php - Forum PHP
- Retour a la ligne php ✓ - Forum PHP
3 réponses
Bonsoir,
Un petit tour par là https://openclassrooms.com/fr/courses/918836-concevez-votre-site-web-avec-php-et-mysql vous apprendra comment débugger ce genre de problèmes.
Un petit tour par là https://openclassrooms.com/fr/courses/918836-concevez-votre-site-web-avec-php-et-mysql vous apprendra comment débugger ce genre de problèmes.