| |
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
|
<?php
$connection = mysql_connect("localhost","pincbe","1234f56");
if ( ! $connection ) {
die ("connection impossible");
}
mysql_select_db("nom_de_la_base",$db) or die ("pas de connection");
$sql = "INSERT INTO department
VALUES('6','Informatique','1231231234','5 mai 2011')";
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
if ($req!=0) {
echo "L'enregistrement est inséré";
};
mysql_close();
?>
|
|