Bonjour, j'ai un souci de code php.
J'ai un message d'erreur et la partie formulaire s'affiche vide(cf capture d'ecran_lien tout petit ci_dessous).

Nom : erreur.jpg
Affichages : 41
Taille : 12,5 Ko

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "emprunter")) {
  $updateSQL = sprintf("UPDATE emprunt SET num_adherent=%s, date_emprunt=%s, date_retour=%s WHERE num_exemplaire=%s",
                       GetSQLValueString($_POST['num_exemplaire'], "text"),
					   GetSQLValueString($_POST['num_adherent'], "text"),
                       GetSQLValueString($_POST['date_emprunt'], "date"),
                       GetSQLValueString($_POST['date_retour'], "date"));
 
 
  mysql_select_db($database_bibliodec, $bibliodec);
  $Result1 = mysql_query($updateSQL, $bibliodec) or die(mysql_error());
 
  $updateGoTo = "connection.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $updateGoTo));
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
</head>
 
<body>
<?php $titre_livre=$_POST['titre_livre'] ?>
<?php $nom_auteur=$_POST['nom_auteur'] ?>
<?php mysql_connect("localhost","root","");
mysql_select_db("bibliodec");
 
$reponse=mysql_query("select num_adherent,num_exemplaire,date_emprunt,date_retour from emprunt 
where(num_exemplaire='100700*1') and (titre_livre='$titre_livre' or nom_auteur='$nom_auteur')");
 
while($donnees=mysql_fetch_array($reponse));
{
?>
<form action="<?php echo $editFormAction; ?>" method="POST" name="emprunter">
<input name="num_adherent" type="text" value="<?php echo $donnees['num_adherent']; ?>"/>
<input name="num_exemplaire" type="text" value="<?php echo $donnees['num_exemplaire'];?>"/>
<input name="date_emprunt" type="text" value="<?php echo $donnees['date_emprunt'];?>"/>
<input name="date_retour" type="text" value="<?php echo $donnees['date_retour'];?>"/>
<input name="Emprunter" type="submit" value="Emprunter le livre"/>
<input type="hidden" name="MM_update" value="emprunter">
</form>
<?php
}
mysql_close();
 
?>
Merci ,
Aquafafa