Error Encountered when using PHPlot to plot graph.
Discuss Error Encountered when using PHPlot to plot graph. in the PHP Development forum on Dev Shed. Error Encountered when using PHPlot to plot graph. PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
//Turn off X axis ticks and labels because they get in the way:
$plot->SetXTickLabelPos('none');
$plot->SetXTickPos('none');
//Draw it
$plot->DrawGraph();
?>
[php]
Posts: 2,879
Time spent in forums: 1 Year 2 Weeks 1 Day 11 h 31 m 21 sec
Reputation Power: 581
1) Please enclose your code in [ PHP ] tags. See the sticky at the top of this forum.
2) Don't use the depreciated MySQL extensions. You should be using PDO.
3) Since we are not clairvoyant, you will need to post the error message.
__________________
There are 10 kinds of people in the world. Those that understand binary and those that don't.
Posts: 2,879
Time spent in forums: 1 Year 2 Weeks 1 Day 11 h 31 m 21 sec
Reputation Power: 581
I do, obviously. Deprecate is a word I rarely use compared to depreciate so that is a natural typo for me. I don't know why I'm explaining myself to you anyway. Why are you so concerned with my typos in the first place? Is there anyone on this forum that you think is too dumb to understand what I meant?
Posts: 7
Time spent in forums: 1 h 20 m 19 sec
Reputation Power: 0
Hi I thought i have enclosed the code within the [PHP] tags.
Sorry if i made any mistakes quite new here.
The error of the query is
Warning: mysql_fetch_array() expects at least 1 parameter, 0 given in C:\xampp\htdocs\PHPlot\phplot-5.8.0\test1.php on line 21
Warning: mysql_fetch_row() [function.mysql-fetch-row]: The result type should be either MYSQL_NUM, MYSQL_ASSOC or MYSQL_BOTH in C:\xampp\htdocs\PHPlot\phplot-5.8.0\test1.php on line 23
and for the error on line 23 it just keep repeating until it cause lags and the window closes it. Did i loop it somewhere and cause it to repeat continuously? I really have no idea.