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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
| <?php
include("../connexion_bdd.php");
connexion();
$sql = "INSERT INTO guitares(id_guit, nom_guit, marque_guit, type_guit, gaucher_guit, prix_guit, stock_guit)
VALUES('', '$_POST[nom_guit]', '$_POST[marque_guit]', '$_POST[type_guit]', '$_POST[gaucher_guit]', '$_POST[prix_guit]', '$_POST[stock_guit]')";
@mysql_query($sql) or die(mysql_error());
?>
<!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>
<link rel="stylesheet" type="text/css" href="../styles.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="fr" />
</head>
<body>
<div id="login">
</div>
<div id="global">
<div id="contenu_droit">
<div id="moteur_recherche">
<form method="post" action="recherche.php">
<center><b>> Rechercher une guitare:</b><br /><br />
<input type="text" name="recherche" size="15" id="recherche" /><br /><br />
<input type="submit" value="Rechercher" name="rechercher" /></center>
</form>
<center><p style="font-size:10px;">> <a href="recherche_avancee.php">Recherche avancée</a></p></center>
</div>
<div id="newsletter">
<center><h5>> Newsletter</h5></center>
Recevoir les nouveautés sur les différentes gammes Signatures et Editions limitées<br /><br />
<center><a href="newsletter_inscription.php">> S'inscrire!</a></center><br />
</div>
<div id="nouveautes">
<center><h5>> Nouveautés</h5></center>
><span class="mef_blocks"><a href="">Signatures</a></span><br />
><span class="mef_blocks"><a href="">Editions limitées</a></span><br />
><span class="mef_blocks"><a href="">Occasions</a></span><br />
><span class="mef_blocks"><a href="">Accessoires</a></span><br />
</div>
<div id="rubriques">
<center><h5>> Rubriques</h5></center>
><span class="mef_blocks"><a href="">Vendre</a></span><br />
><span class="mef_blocks"><a href="">Livre d'or</a></span><br />
><span class="mef_blocks"><a href="">Nous contacter</a></span><br />
><span class="mef_blocks"><a href="">A propos</a></span><br />
</div>
</div>
<div id="header">
<div id="menu">
<ul id="menul">
<li><a href="../index.php">Accueil</a></li>
<li><a href="../signatures.php">Signatures</a></li>
<li><a href="../ed_limitees.php">Ed. Limitées</a></li>
<li><a href="../accessoires.php">Accessoires</a></li>
<li><a href="../nos_magasins.php">Nos magasins</a></li>
</ul>
</div>
</div>
<div id="contenu">
<div id="listing_contenu">
<form method="POST" action="ajout_guitare.php" enctype="multipart/form-data">
<legend>Ajout des guitares</legend><br /><br />
Nom: <input name="nom_guit" type="text"><br /><br />
<?php
$req = mysql_query("SELECT * FROM marques");
echo 'Marque: <select name="marque_guit">';
while ($donnees = mysql_fetch_array($req))
{
?>
<option>
<?php
echo $donnees['nom_marques'];
?>
</option>
<?php
}
echo '</select><br /><br />';
?>
Type: <select name="type_guit">
<option value="Signature">Signature</option>
<option value="Edition Limitée">Edition Limitée</option>
</select><br /><br />
Gaucher: <select name="gaucher_guit">
<option value="Oui">Oui</option>
<option value="Non">Non</option>
</select><br /><br />
Prix: <input name="prix_guit" type="text"><br /><br />
Stock: <select name="stock_guit">
<option value="En Stock">En stock</option>
<option value="En Rupture de Stock">En rupture de stock</option>
</select><br /><br />
<center><input type="submit" name="envoi" value="Envoyer" /></center>
</legend>
</form>
</div>
</div>
</div>
</body>
</html> |
Partager