Ravi I am developing an application that queries mysql database (that gets updated realtime) whenever there is a http request and draws a chart with the data. Basically i am POPULATING DATA USING SERVER SIDE CODE. I found a sample in php which works fine for small database. But it fails for large databases. The chart displays nothing for large data. So i am trying to create a nodejs(asynchronous) which is the solution. I have provided the php files and my webserver.js(nodejs). I never mentioned that my webserver.js is final. It has method stubs that needs to be developed. I am new to nodejs, PHP or for that matter Web applications. I am trying to learn while developing my application. Have i made myself clear. Can you help me out with the code
On Wednesday, November 19, 2014 11:39:28 PM UTC+5:30, // ravi wrote: > > On Nov 19, 2014, at 1:35 AM, Vasa <[email protected] <javascript:>> > wrote: > > > Thank you for pointing out the bug. I am new to PHP :). I fixed it and my > PHP is working fine retrieving the data and charting. But i am trying to > move the db queries to my nodejs. So that when a request is made, it > queries the db and then tries to chart the data. I have attached my node > server. Please help me out. > > > > Vasa, > > I am curious why you have or need both PHP and NodeJS? Ignore this if you > have already proceeded past that point and Aria might have a quick answer > for your question above. > > Is there a typo in the above? Did you mean NodeJS where you write PHP, > above? > > —ravi > > > > > On Tuesday, November 18, 2014 1:21:53 PM UTC+5:30, Vasa wrote: >> >> Hello noders >> >> i am trying to generate a chart (using highcharts) with queried data from >> Mysql. >> I have my data.php file to query the database and create a JSON file. >> This JSON file is used by index.php file to draw the chart. >> This is not working because the chart is drawn before the sql data is >> retrieved. >> >> I am trying to create a nodejs for the same and i assume this is the >> solution to my requirement >> >> Any advice here >> >> > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/9b922957-2fcd-4863-868b-ea34e24ccd44%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
