44 lines
931 B
PHP
Executable File
44 lines
931 B
PHP
Executable File
<?
|
||
include("mysql_compat.php");
|
||
#addcat.php
|
||
$db=mysql_connect('o2000', 'jmevel', 'jmevel01');
|
||
|
||
?>
|
||
<html>
|
||
|
||
<head>
|
||
<meta http-equiv="Content-Language" content="fr">
|
||
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
||
<title>Ajouter un Article</title>
|
||
<meta name="Microsoft Theme" content="sumipntg 011, default">
|
||
</head>
|
||
|
||
<body background="../images/balle_raquette3.jpg">
|
||
<form name="monform"
|
||
method="POST"
|
||
action="resuladdcat.php">
|
||
|
||
|
||
<p><H1>Ajout d'une cat<61>gorie d'articles.</H1></p>
|
||
Cat<EFBFBD>gories existantes:
|
||
|
||
<?
|
||
$sql = "SELECT * FROM categories ORDER BY name;";
|
||
$result=mysqli_query($db, $sql);
|
||
while ($item = mysqli_fetch_array($result))
|
||
{
|
||
printf("%s / ", $item["name"]);
|
||
}
|
||
|
||
?>
|
||
|
||
<BR>
|
||
<BR>
|
||
Nouvelle Cat<61>gorie: <input type="text" name="newcat" size=50 maxlength=50>
|
||
<BR>
|
||
<BR>
|
||
|
||
<align="center"><input type="submit" value="Envoyer" name="B1">
|
||
</form>
|
||
<?include("../piedDePage.php");?>
|