<?php require_once "config/db.php"; require_once "classes/Edit.php"; $select = new Edit(); $getData = $select->showSomething("value"); echo count($getData); for ($i = 0; $i <= count($getData); $i++) { echo "<br>" . $getData[$i]; }
<link rel="apple-touch-icon" href="apple-touch-icon.png"> <link rel="stylesheet" href="css/normalize.min.css"> <link rel="stylesheet" href="css/foundation.css" /> <link rel="stylesheet" href="css/main.css"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> <script src="js/vendor/modernizr-2.8.3.min.js"></script> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <?php require_once "config/db.php"; require_once "classes/Edit.php"; $select = new Edit(); $getId = $select->showSomething("id"); $getData = $select->showSomething("value"); ?> <script type="text/javascript"> google.load("visualization", "1.1", {packages:["bar"]}); google.setOnLoadCallback(drawStuff); function drawStuff() { var data = new google.visualization.arrayToDataTable([ ['Move', 'Percentage'], <?php for ($s = 0; $s < count($getData); $s++) { echo "['";