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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| <?php
session_start();
$_SESSION['url'] = $url;
$serveur = "//";
$dbname = "//";
$user = "//";
$pass = "//";
$dsn = "mysql:host=$serveur;dbname=$dbname";
$sql = "SELECT * FROM quizz WHERE url = :url ";
$info=mysqli_fetch_assoc($sql);
try{
$pdo = new PDO($dsn, $user, $pass);
$stmt = $pdo->prepare($sql);
$stmt->bindParam(":url",$url);
$stmt->execute() or die(print_r($stmt->errorInfo()));
}catch (PDOException $e){
echo $e->getMessage();
}
?>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="icon" type="/image/png" href="/images/icon.png" />
<link rel="apple-touch-icon" href="/images/icon.png" />
<meta http-equiv="pragma" content="no-cache" />
<link href="/css/style_reponses.css?t= <? echo time(); ?>" rel="stylesheet" type="text/css">
<title>
</title>
</head>
<body>
<?php echo $info['quizz_name'];?>
</body>
</html> |
Partager