Thank you, jpadie!
If I'm understanding this code:
$begin = empty($_POST['alpha']) ? "2007-12-01": trim ($_POST['alpha']);
$end = empty($_POST['omega'] ? "2007-12-10": trim ($_POST['omega']); We're setting it to be on of two values, either the $_POST value : (or) the manually coded value.
So...
I've been playing with the code you gave me and have found that $begin = empty($_POST['alpha']) ? "2007-12-01": trim ($_POST['alpha']);
$end = empty($_POST['omega']) ? "2007-12-10": trim ($_POST['omega']);
is giving me some thing interesting.
If I run the charting program I get the date range...
I added these lines of code because of the way that the users will be generating charts. Some users choose to pull a years worth of information at a time. So the count($graphdata) could be upwards of 365. Without adding a control to the skip the dates write a thick black line on the bottom. This...
I found a couple of syntax things and fixed them, For any one using this in the future, update line four and line five of the second file to :
$begin = empty($_POST['alpha']) ? "2007-12-01": trim ($_POST['alpha']);
$end = $begin = empty($_POST['omega']) ? "2007-12-10": trim ($_POST['omega'])...
Found that it was posting an error...
http://www.bijae.net
"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart
Thank you, that is very Slick... but it still does not produce results.
Initial load gives me the two drop down submit form..
after post I get the default chart.
http://www.bijae.net
"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart
...= a.strdate
, evtcnt = sum(a.evtcnt)
, dspcnt = sum(a.dspcnt)
from (
select
strdate = convert(varchar(10), Date_Time, 120)
, evtcnt = count(*)
, dspcnt = 0
from Event_Log
where Date_Time between '$begin' and '$end'
group by convert(varchar(10), Date_Time, 120)
union all
select...
This post is a new problem relating to my previous post:
http://www.tek-tips.com/viewthread.cfm?qid=1440462&page=1
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...
jpadie, thank you for all your help! I really do appreciate it! After fighting this for a few days I finally broke down and decided I'm going to rebuild the program. In one hour I've been able to rewrite the code and succesfully build the array from the database. In half the time I've already...
10-4...
I've been playing with the location of the ob_end_clean() and getting different results. If I put it on the last line of the file I get the load failed message as previously stated. However, if I put it directly in front of:
SendChartData ( $chartB);
I get a different result. I get...
jpadie... you're gonna shoot me..
I think I was following your lead, so I added this code to my script:
$graphdata = serialize($graphdata);
//echo "graphdata = $graphdata";
$graphdata = unserialize($graphdata);
My thinking was if I can reproduce bit for bit what you gave me in your...
My bad, I had inadvertently deleted the date line from the copy paste. Not sure how.. I replaced it and yes, it works.
http://www.bijae.net
"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart
No, I still get the default menu.
http://www.bijae.net
"If the only prayer you said in
your whole life was, 'thank you,'
that would suffice."
-- Meister Eckhart
Let me ask this:
When loading an Array dynmically through
$var[] = $objvar;
Does PHP include any wrappers arround the variable. From all the tests we've done the only difference I can see is in the manually coded array text and other items are surrounded by " "? I'm curious if the chart...
Thank you, jpadie..
I think I'm understanding your code and it looks very much like how I would code it if I had built the original application. Unfortunately I've inherited this one and have to work with the house of cards that is already standing. That being said I want to make sure I'm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.