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
|
case "news-jamais-lu":
$fiche = (isset($_GET['f']))?stripslashes(htmlspecialchars($_GET['f'])):'';
$unique = (isset($_GET['u']))?stripslashes(htmlspecialchars($_GET['u'])):'';
$client = (isset($_GET['c']))?stripslashes(htmlspecialchars($_GET['c'])):'';
//$id
$news = (isset($_GET['n']))?stripslashes(htmlspecialchars($_GET['n'])):'';
$lu = 1;
$query=$db->prepare('INSERT INTO x_membre_client_news_lu
(membre_id, client_id, news_id, news_lu)
VALUES (:id, :client, :news, :lu)');
$query->bindValue(':id', $id, PDO::PARAM_INT);
$query->bindValue(':client', $client, PDO::PARAM_INT);
$query->bindValue(':news', $news, PDO::PARAM_INT);
$query->bindValue(':lu', $lu, PDO::PARAM_INT);
$query->execute();
$query->CloseCursor();
echo'<meta http-equiv="refresh" content="0;url=./article.php?f='.stripslashes(htmlspecialchars($fiche)).'&c='.stripslashes(htmlspecialchars($client)).'">';
break; |
Partager