Consult obtain numeric value in a variable

0

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.

    
asked by 06.09.2017 в 21:00
source

0 answers