par Kaoteknik » 17 oct. 2007, 18:38
par seyb » 17 oct. 2007, 16:20
$suppr = mysql_query("DELETE FROM annonces WHERE id='$id'") AND ("SELECT * FROM annonces ORDER BY ID DESC LIMIT 0,10");
par seyb » 15 oct. 2007, 17:29
par Ryle » 15 oct. 2007, 15:57
par seyb » 15 oct. 2007, 15:19
par seyb » 15 oct. 2007, 15:12
par seyb » 15 oct. 2007, 14:50
par Berzemus » 15 oct. 2007, 14:36
Code : Tout sélectionner
<img height="20px" width="40px" src="./image.jpg">
<img class="toupeti" src="./image.jpg">
img.toupeti { width:40px; height:20px; }
par seyb » 15 oct. 2007, 12:17
par Berzemus » 15 oct. 2007, 11:29
par Ryle » 15 oct. 2007, 11:06
par Berzemus » 15 oct. 2007, 10:39
par seyb » 15 oct. 2007, 09:47
par AB » 12 oct. 2007, 21:18
par seyb » 12 oct. 2007, 16:38
<!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>Formulaire d'ajout</title> <link rel="stylesheet" type="text/css" href= "form.css"> <style type="text/css"> </style> </head> <body> <?php $sql["serveur"]='localhost'; $sql["login"]='root'; $sql["pass"]=''; $sql["base"]='basetest'; $sql["connect"]=mysql_connect($sql["serveur"],$sql["login"],$sql["pass"])or die ("impossible de se connecter, réessayé plus tard"); $sql["select_base"]=mysql_select_db($sql["base"],$sql["connect"])or die ("erreur de connexion base"); $machine = $_POST['machine']; $description = $_POST['description']; if (isSet($_POST['inserer'])) $requete = "INSERT INTO annonces (id, machine, description) VALUES ('', '$machine', '$description')"; ?> <body> <form method="POST" name="letsgo"> <table width="300" height="200" border="0" align="center" cellspacing="0" id="contour"> <tr>s <td width="247" bgcolor="#FFFFFF"><span class="Text">Nom de la machine</span></td> </tr> <tr> <td bgcolor="#FFFFFF"><input name="machine" type="text" size="50" /></td> </tr> <tr> <td bgcolor="#FFFFFF"><span class="Text">Description</span></td> </tr> <tr> <td bgcolor="#FFFFFF"><textarea name="description" cols="38" rows="5"></textarea></td> </tr> <tr> <td bgcolor="#FFFFFF"><div align="right"> <input type="submit" name="inserer" value="Inserer" /> </div></td> </tr> </table> </form> </body> </html>