voila c'est que j'ai fait
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 52 53 54 55 56 57 58 59 60 61
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php // Show if recordset empty ?>
<p> </p>
<p align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="570" height="59">
<param name="movie" value="suppr.swf">
<param name="quality" value="high">
<embed src="suppr.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="570" height="59"></embed>
</object>
</p>
<p> Pour réeinitialiser la recherche cliquer <a href="supp.html">ICI </a></p>
<?php
$lien = mysql_connect("localhost", "root","");
if ($lien ==0)
exit("impossible d'etablir la connexion");
if(mysql_select_db("epst", $lien) == 0)
exit("impossible de se connecter a la base");
$nom=$_POST['nom'];
if(empty($nom))
{print("champ incomplet");
print'<a href="javascript:history.back();">Cliquez ici pour entrer un nom a effacer</a>';
}
else
{
$requete="delete from ats where nom='$nom'";
if(mysql_query($requete) == 0)
exit("impossible de supprimer ce nom");
else
$requete="select * from ats";
$rep=mysql_query($requete);
if($rep==0)
print("table nom vide<br>");
else { ?>
<table>
<thead>
<tr>
<th>Nom</th>
<th>Prénom</th>
<th>Mail</th>
</tr>
</thead>
<tbody>
<?php while($row = mysql_fetch_row($rep)): ?>
<tr>
<td><?php echo $row[3]; ?></td>
<td><?php echo $row[4]; ?></td>
<td><?php echo $row[5]; ?></td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
<?php } ?>
</body>
</html> |
mais toujours ya rien
il me donne l'erreur suivante
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\site\supp.php on line 61
Partager