Hybride Posted November 20, 2007 Share Posted November 20, 2007 Am using Open Flash Chart (OFC) for graphs on my site. I've been trying to figure out for the past few days how to get dynamic data from the database. There's two problems I've found so far: 1) when I pass a variable through the link (open_flash_chart_object( 500, 250, 'http://'. $_SERVER['SERVER_NAME'] .'/open-flash-chart/data-3.php?user=1' ); ), it will only accept static data, not dynamic (so when I try to do data-3.php?user=$user, it won't work); 2) even though I have the static variable in that is used in the database, the second part of the file code will not grab the data and put it into the graph (it comes up as null). The link to the tutorial is http://teethgrinder.co.uk/open-flash-chart/tutorial-db.php. I've tried using the tutorial's way of getting data from the db, but no luck. Anyone have a clue? Thanks (yet again). Quote Link to comment https://forums.phpfreaks.com/topic/78094-open-flash-chart/ Share on other sites More sharing options...
hvelocity Posted November 26, 2007 Share Posted November 26, 2007 Have you had any luck figuring this out? I'm having the same problem and I'm not finding the tutorial terribly elucidating. I'd appreciate any info you can share if you've got it figured out. I'll post back if I find the magic bullet myself. Quote Link to comment https://forums.phpfreaks.com/topic/78094-open-flash-chart/#findComment-399717 Share on other sites More sharing options...
Hybride Posted December 3, 2007 Author Share Posted December 3, 2007 Yeah, I posted in the actual help forum of the page. It was really simple, and was silly not to have figured it out: switch the single apostrophe ('') to double (""). The second part (grabbing the static variable) will fall into place right after. Quote Link to comment https://forums.phpfreaks.com/topic/78094-open-flash-chart/#findComment-404613 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.