kennnnnny
Messages postés13Date d'inscriptionjeudi 6 février 2003StatutMembreDernière intervention18 juin 2004
-
1 juin 2004 à 09:47
_diablo
Messages postés3Date d'inscriptionmardi 1 juin 2004StatutMembreDernière intervention 1 juin 2004
-
1 juin 2004 à 14:40
<?php
//connexion a la base
..............................
..............................
if (!isset($HTTP_POST_VARS['nom_cat'])) $cat=""; else $nom_cat=$HTTP_POST_VARS['nom_cat'];
if (isset($HTTP_POST_VARS['nom_cat']))
{
$req = "INSERT INTO categories (id_cat, nom_cat) VALUES ('', '$nom_cat')";
echo $req;
$resultat = mysql_query($req) or die(mysql_error());
$id_cat=mysql_insert_id();
}
?>
<html>