In the example below, using graphic functions we will build a bar chart based on the values stored in MySQL database. In our case, values represent poll results.In this example we will use poll database. To create it run the following SQL script in your MySQL server: CREATE TABLE `results` ( INSERT INTO `results` values //connection to the database //select a database to work with //execute the SQL query and return records $num_poller = mysql_num_rows($result); //fetch the data from the database //nulling the pointer $result //close the connection |
1
Votes
Votes
Building a bar chart using PHP
Posted By tamilsolai on Mar 29, 2010 FROM: advancedphptutorial.blogspot.com report abuse




Post new comment