Good day I have a problem to be able to take the value of a query $ query in PHP, the query is as follows
$ query="SELECT SUM (Cast (amount as numeric (15.2))) as Total FROM cxpgastos Where creditor = $ creditor ";
How can I change it to a variable and let's say
IF (resultquery > 15000.00) alert ("I have exceeded your credit limit");
I hope you can help me, and thank you.