2

I am currently monitoring 38 individual LED Lighting current and the data is being displayed/imported to a MySQL table. However, that is not what I want to achieve. I want to instead have a concept similar to a table you see in Stock market, where the values(current) are being replaced every other minute or so. Please do advice on how I am suppose achieve the desired outcome. Thank you.

1
  • Use jquery or a similar javascript library and just pole your database and update your view. Commented Dec 28, 2015 at 17:43

2 Answers 2

1

You can use MySQl Acceding or Descending order and short the values. like as

SELECT * FROM  `table-name` ORDER BY  `LED` DESC
Sign up to request clarification or add additional context in comments.

Comments

1

I suggest you use some kind of JS graph library. You can make a PHP script the get you data from the database, and use ajax to reload your data into a graph.

I'm, suggesting using HighChart.

This is a good example: Auto Update Highcharts with Ajax

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.