About the project, I have been able to create a way to populate database data on the browser as in form a report whereby users can then query it and get the limited data they want on the browser through the help of some tutorials gotten.
Thanks sirs for your comments so far. @Mittineague, appreciate your advise greatly, but here in Nigeria, some lecturers believes they are demi-gods and won't listen to any plea whatsoever.
With the graph, i then intend that the user enters the data from the query into the form themselves. However, I am having issues to get the script pull from the form. @Cups, I used the get method as suggested and without the graph script, the form is working with the exception of the textarea field.
Please i need help as to how to get this final stage to work as this is almost the final stage of my project.
Many Thanks. My code is below:
$title = (int)$_GET['title'];
$legend = (int)$_GET['legend'];
// content="text/plain; charset=utf-8"
// Example for use of JpGraph,
// ljp, 01/03/01 20:32
// We need some data
// Setup the graph.
$graph = new Graph(1000,400);
// Set up the title for the graph
// Setup font for axis
// Show 0 label on Y-axis (default is not to show)
// Setup X-axis labels
// Set X-axis at the minimum value of Y-axis (default will be at 0)
$graph->xaxis->SetPos("min"); // "min" will position the x-axis at the minimum value of the Y-axis
// Create the bar pot
$bplot = new BarPlot($datay);
// Setup color for gradient fill style
// Set color for the frame of each bar
// Finally send the graph to the browser
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form id="form1" name="form1" method="get" action="<?= $PHP_SELF ?>">
<label for="title">Graph Title:</label><br/>
<input type="text" name="title" id="title" /><br/><br/>
<label for="legend">Graph Legend:</label><br/>
<input type="text" name="legend" id="legend" /><br/><br/>
<label for="values">Enter X values(seperate with comma):</label><br/>
<textarea name="values" id="values" cols="45" rows="5"></textarea><br/><br/>
<input type="submit" name="generate" id="generate" value="Generate Graph" />