par betman » 21 nov. 2005, 13:31
par iclo » 21 nov. 2005, 12:06
par betman » 21 nov. 2005, 12:02
<img src='/admin/anomalie/img/<?php echo($photo); ?>.jpg">'
par betman » 18 nov. 2005, 03:04
par Truc » 18 nov. 2005, 00:46
par betman » 17 nov. 2005, 19:29
<img src='../../admin/anomalie/img/<?php echo($photo); ?>.jpg">'
par iclo » 17 nov. 2005, 18:40
<img src='dossier/<?php echo($photo); ?>.jpeg">'
par betman » 17 nov. 2005, 18:38
par betman » 17 nov. 2005, 15:14
<img src='<?php echo($photo); ?>'>
par iclo » 17 nov. 2005, 14:06
par Invité » 17 nov. 2005, 11:15
par Cyrano » 16 nov. 2005, 21:36
<?php include("connection.inc.php"); $query = "SELECT * FROM anomalies ORDER BY id_anom DESC"; $result = mysql_query($query); $nb = mysql_numrows($result); while ($val = mysql_fetch_array($result)) { /* On parcoure les résultats de la requête */ $id_anom = $val["id_anom"]; $nom = $val["nom"]; $date = $val["date"]; $anomalies = $val["anomalies"]; $desc_anom = $val["desc_anom"]; $photo = $val["photo"]; $bool = $val["bool"]; $status = ($val["bool"]==1) ? "[Corrigée]" : null; ?> <table width="750" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <td width="15%" class="texte_gras"><?php echo($date); ?></td> <td width="28%" class="texte_gras"><a href="repondreanom.php?id_anom=<?php echo($id_anom); ?>" class="texte_lien"><?php echo($anomalies); ?></a></td> <td width="28%" class="texte_gras"><a href="repondreanom.php?id_anom=<?php echo($id_anom); ?>" class="texte_lien"><?php echo($nom); ?></a></td> <td width="28%" class="texte_gras"><a href="repondreanom.php?id_anom=<?php echo($id_anom); ?>" class="texte_lien"><?php echo($photo); ?></a></td> <td width="30%" class="status"><?php echo($status); ?></td> </tr> <tr> <td colspan="5" height="1" bgcolor="#f9c9c6"></td> </tr> </table> <?php } ?>
par betman » 16 nov. 2005, 18:06
<? include('connection.inc.php'); $query = "SELECT * FROM anomalies ORDER BY id_anom DESC"; $result = mysql_query($query); $nb = mysql_numrows($result); while ($val = mysql_fetch_array($result)) { /* On parcoure les résultats de la requête */ $id_anom = $val["id_anom"]; $nom = $val["nom"]; $date = $val["date"]; $anomalies = $val["anomalies"]; $desc_anom = $val["desc_anom"]; $photo = $val["photo"]; $bool = $val["bool"]; echo " <table width='750' border='0' align='center' cellpadding='5' cellspacing='0'> <tr> <td width='15%' class='texte_gras'>$date</td> <td width='28%' class='texte_gras'><a href='repondreanom.php?id_anom=$id_anom' class='texte_lien'>$anomalies</a></td> <td width='28%' class='texte_gras'><a href='repondreanom.php?id_anom=$id_anom' class='texte_lien'>$nom</a></td> <td width='28%' class='texte_gras'><a href='repondreanom.php?id_anom=$id_anom' class='texte_lien'>$photo</a></td> <td width='30%' class='status'> "; if ($val["bool"]==1) echo "[Corrigée]"; echo"</td> </tr> <tr> <td colspan='5' height='1' bgcolor='#f9c9c6'></td> </tr> </table> "; } ?>
par jeff » 16 nov. 2005, 17:49
$query = "INSERT INTO anomalies(id_anom,nom,date,anomalies,desc_anom,photo) VALUES ('','".$_POST['nom']."','".$_POST['date']."','".$_POST['anomalies']."','".$_POST['desc_anom']."','".$dest_dossier . $dest_fichier."')";
par betman » 16 nov. 2005, 17:43
et si tu remplace par $dest_dossier . $dest_fichier $_POST['photo']
$dest_dossier . $dest_fichier
$_POST['photo']