mysql – SQL get last entry of a specific gravity form

I have an ROI calculator that needs to show results in the form of a graph. I am using the Visualizer plugin, which allows chart data to be populated by a DB.

I want a sql query that will get the last entry of a specific form (id=2), once I have it it should be able to display the chart on the results page after submission.

I’ve tried this but it didn’t work.

Leave a Comment