123456789101112131415161718192021222324252627282930313233343536 |
- <?php
-
-
-
- include_once "config.php";
- error_reporting(E_ALL);
- ini_set("display_errors",1);
-
-
- $amount = $db->stmt_init();
- if($amount = $db->prepare("SELECT eid,amount,quantity,total FROM Inventory WHERE amount!='n/a' AND quantity!='n/a' AND total!='n/a'")){
-
- if($amount->execute()){
-
- $result = $amount->get_result();
- $response = array();
- while($mult = $result->fetch_assoc()){
- $key = $mult["eid"];
- $a = $mult["amount"];
- $q = $mult["quantity"];
- $t = $mult["total"];
- if(floatval($a)*floatval($q) != floatval($t)){
- echo $key . '<br>';
-
- }
- }
-
- }
- }
- ?>
|