Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: BiJae
  • Order by date
  1. BiJae

    $var = "Date" vs. $var = $_POST['Date']

    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...
  2. BiJae

    $var = "Date" vs. $var = $_POST['Date']

    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...
  3. BiJae

    $var = "Date" vs. $var = $_POST['Date']

    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...
  4. BiJae

    $var = "Date" vs. $var = $_POST['Date']

    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'])...
  5. BiJae

    $var = "Date" vs. $var = $_POST['Date']

    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
  6. BiJae

    $var = "Date" vs. $var = $_POST['Date']

    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
  7. BiJae

    $var = "Date" vs. $var = $_POST['Date']

    ...= 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...
  8. BiJae

    $var = "Date" vs. $var = $_POST['Date']

    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...
  9. BiJae

    PHP/SWF Charts

    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. BiJae

    PHP/SWF Charts

    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...
  11. BiJae

    PHP/SWF Charts

    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...
  12. BiJae

    PHP/SWF Charts

    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
  13. BiJae

    PHP/SWF Charts

    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
  14. BiJae

    PHP/SWF Charts

    Sure: http://www.bijae.net "If the only prayer you said in your whole life was, 'thank you,' that would suffice." -- Meister Eckhart
  15. BiJae

    PHP/SWF Charts

    ..., evtcnt = sum(a.evtcnt) , dspcnt = sum(a.dspcnt) from ( select strdate = convert(varchar(10), Date_Time, 120) , evtcnt = count(*) , dspcnt = 0 from $eventdb.$eventowner.Event_Log where Date_Time between @dtalpha and @dtomega group by convert(varchar(10), Date_Time, 120)...
  16. BiJae

    PHP/SWF Charts

    My pleasure: http://www.bijae.net "If the only prayer you said in your whole life was, 'thank you,' that would suffice." -- Meister Eckhart
  17. BiJae

    PHP/SWF Charts

    Absolutely! I appreciate your continued help on this... $graphdata = array(); $kalpha = array_search($alpha, $drange); $komega = array_search($omega, $drange); foreach ( array_slice($drange, $kalpha, ($komega - $kalpha + 1)) as $ak => $av ) $graphdata[] = array($av, 0, 0); $result =...
  18. BiJae

    PHP/SWF Charts

    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...
  19. BiJae

    PHP/SWF Charts

    ...$Date = array(''); $Event = array('Events'); $Disp = array('Dispatches'); foreach($graphdata as $row) { extract($row); //variables are /* $strdate $evtcnt $dspcnt */ $Date[] = $strdate; $Event[] = $evtcnt; $Disp[] = $dspcnt; } //now turn it into a...
  20. BiJae

    PHP/SWF Charts

    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...

Part and Inventory Search

Back
Top