You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
749 B

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Roulette à eau</title>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<code>
<?php
$bdd = new SQlite3('bdd.db');
$query = $bdd -> query('SELECT * FROM Info');
$res = $query -> fetchArray();
var_dump($res);
?>
</code>
<canvas id="roulette"></canvas>
<script type="text/javascript">
var datalist= new Array(35, 25, 20, 12, 7, 1);
var colist = new Array('blue', 'red', 'green', 'orange', 'gray', 'yellow');
var canvas = document.getElementById("canvas3");
var rendu = canvas.getContext('2d');
pie(rendu, canvas.width, canvas.height, datalist);
</script>
</body>
</html>