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
| <?
include ("news.menu.php3");
include ("news.connect.inc.php3");
include ("news.myFct.php3");
# Pour clef primaire
$id=time();
# Connexion
connect($H,$L,$P);
# SQL Effacer notice
$sql = "INSERT INTO news
(ID, POSTNAME, POSTMEL, POSTURL, TITRE, NEWS,
URL1, REF1, URL2, REF2, URL3, REF3)
VALUES
('$id', '$postname', '$postmel', '$posturl', '$titre', '$news',
'$url1', '$ref1', '$url2', '$ref2', '$url3', '$ref3')";
send_sql($db, $sql);
echo "<table width=500 border=0 cellpadding=0 cellspacing=0 align='center'><tr><td>";
echo "<font size='+3' color=#ff0000>Votre News a été prise en compte. Merci.</font>";
echo "</td></tr></table>";
?> |
Partager