59 lines
1.6 KiB
PHP
Executable File
59 lines
1.6 KiB
PHP
Executable File
<?php
|
|
session_start();
|
|
$idcateg=$HTTP_POST_VARS["idcateg"];
|
|
$nomcateg=$HTTP_POST_VARS["nomcateg"];
|
|
$descriptioncateg=$HTTP_POST_VARS["descriptioncateg"];
|
|
?>
|
|
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<?php
|
|
if (isset($_SESSION['idadm']))
|
|
{
|
|
?>
|
|
<div align="center">
|
|
<table border=1>
|
|
<tr>
|
|
<td colspan=2 align="center">
|
|
<h1>Site Marchand Airtria</h1>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=2 align="center">
|
|
<br><br><h1>Gestion des produits</h1>
|
|
<?php print "idcateg=$idcateg";?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
require("../connexion.php");
|
|
$conn = mysql_connect($host, $user, $password);
|
|
mysql_select_db($bdd) or die("Impossible d'ouvrir la base de donnee $bdd");
|
|
|
|
/* mise a jour categ */
|
|
$requete3 = "update categorie set
|
|
nomcateg='$nomcateg',
|
|
descriptioncateg='$descriptioncateg'
|
|
where
|
|
idcateg='$idcateg'";
|
|
$result3=mysql_query($requete3) or die ("Erreur SQL :$requete<br>".mysql_error()."...");
|
|
?>
|
|
<br><br>
|
|
Categorie <?php print $idcateg ?> : <?php print $nomcateg ?> modifiee.
|
|
<br>
|
|
<br>
|
|
<a href="modifcateg.php?idcateg=<?php print $idcateg?>">Retour</a>
|
|
</div>
|
|
<?php
|
|
}
|
|
else
|
|
{
|
|
print "Erreur de connection";
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|
|
|
|
|