I need some help.
I have a table where in the price field I need to evaluate if the price of the last 3 records were greater than 50. If so I have to display an alert.
Well get the last 3 records I would get using a select with desc and limit 3. If it were submitted for display would be easy the problem is how to evaluate the last 3 records and know if the 3 were greater than 50 or not.
The part of the alert is also easy, I can evaluate the data I give echo.