Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
<?php
include_once("db_connection.php");
include_once("rating_functions.php");
include_once("content_functions.php");
if(isset($_GET['RATED_ID'])){
$rated_id = $_GET['RATED_ID'];
}
if(isSet($_POST['RATED_ID'])){
$rated_id = $_POST['RATED_ID'];
}else { $rated_id= 1;
}
// maak de citaat inhoud
$content_box = make_content_box ($_SERVER ['PHP_SELF'],
$rated_id);
// maak navigatie koppelingen
$nav_next_prev_box ($_SERVER['PHP_SELF'],
$rated_id);
// maak een zelfverzendende beoordelingsvak
// (handelt ook de verzending af)
$submission_box =
make_ratings_box ($_SERVER['PHP_SELF'],
$rated_id);
// maak de koppeling naar verzamel pagina met beoordelingen
$ratings_link = "<a href=\"all_ratings.php\">See other ratings </a>";
// maak de huidige pagina
$page_string = '<<<EOP
<html>
<head>
<title> sample ratable paget</title>
</head>
<body>
<center><h2>Quote of the moment</h2></center>
<table width="500"valign="top"cellpading="20">
<tr valign="top">
<td valign="top"colspan="50">
'."$content_box
<center>$nav_next_prev_box</center>
</td>
<td align='top'colspan='50'>
'.$submission_box.'
<br>'.$ratings_link .'
</td>
</tr>
</table>
</body>
</html>
EOP;
echo $page_string";
?>
<?php
include("../dbvars.php");
// sets $host, $user, $pass
require_once 'DB.php';
$dsn = "mysql://$user:$pass@$host/'user ratings'";
$db = DB;
connect($dsn);
if (DB::isError ($db)){
die ($db->getMessage());
}
?>
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.