This post is a new problem relating to my previous post:
As that post concluded I got everything working and displaying the chart that I wanted! So now it is time to integrate it to the application...
The code that was working used two variables, $begin and $end and they were declared as such:
As such the sql returned the data set and the chart program produced a wonderful chart as expected. To make this program dynamic I changed the code to be:
The SWF/PHP chart no longer produces dataset results but puts up the default chart.
Alpha and Omega are a simple test select list I created:
I changed the variables back and it worked. To further test I just declared four sets of variables:
I declared the four variables but continued to use $begin and $end in my function to get the data. Oddly enough simply declaring the $dyn variables causes the default chart to display. If I comment both the declarations out it works fine. Even if I'm not using the variables declaring them in the same file causes the SWF/PHP chart program to break.
I've been playing around with ob_clean functions to try to get rid of any extraneous noise that I might be causing, however I'm not able to clear it up.
Does any one know of why these two variables might be creating noise to break the files? Moreover does any one have an idea why $_POST['alpha'] != $begin when I have selected '2007-12-01' for both?
Thank you for taking the time to read this and any help you can offer.
"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart
As that post concluded I got everything working and displaying the chart that I wanted! So now it is time to integrate it to the application...
The code that was working used two variables, $begin and $end and they were declared as such:
Code:
$begin = "2007-12-01";
$end = "2007-12-12";
As such the sql returned the data set and the chart program produced a wonderful chart as expected. To make this program dynamic I changed the code to be:
Code:
$begin = $_POST['alpha'];
$end = $_POST['omega'];
Alpha and Omega are a simple test select list I created:
Code:
echo "<html><head><title>Test A File</title></head><body>
<form name='mine' action='' method='POST'>
<select name='alpha'>
<option value='2007-12-01'>2007-12-01</option>/n
<option value='2007-12-02'>2007-12-02</option>/n
<option value='2007-12-03'>2007-12-03</option>/n
<option value='2007-12-04'>2007-12-04</option>/n
<option value='2007-12-05'>2007-12-05</option>/n
<option value='2007-12-06'>2007-12-06</option>/n
<option value='2007-12-07'>2007-12-07</option>/n
<option value='2007-12-08'>2007-12-08</option>/n
<option value='2007-12-09'>2007-12-09</option>/n
</select>
<select name='omega'>
<option value='2007-12-01'>2007-12-01</option>/n
<option value='2007-12-02'>2007-12-02</option>/n
<option value='2007-12-03'>2007-12-03</option>/n
<option value='2007-12-04'>2007-12-04</option>/n
<option value='2007-12-05'>2007-12-05</option>/n
<option value='2007-12-06'>2007-12-06</option>/n
<option value='2007-12-07'>2007-12-07</option>/n
<option value='2007-12-08'>2007-12-08</option>/n
<option value='2007-12-09'>2007-12-09</option>/n
</select>
<input type='submit' name='submit' value='submit'>";
I changed the variables back and it worked. To further test I just declared four sets of variables:
Code:
$begin = "2007-12-01";
$end = "2007-12-12";
$dyn_begins = $_POST['alpha'];
$dyn_ends = $_POST['omega'];
I've been playing around with ob_clean functions to try to get rid of any extraneous noise that I might be causing, however I'm not able to clear it up.
Does any one know of why these two variables might be creating noise to break the files? Moreover does any one have an idea why $_POST['alpha'] != $begin when I have selected '2007-12-01' for both?
Thank you for taking the time to read this and any help you can offer.
"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart