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'")){
/* execute */
if($amount->execute()){
/* fetch result by rows and generate response to script */
$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 . '
';
//echo floatval($a)*floatval($q) . ' ' . floatval($t) . '
';
}
}
}
}
?>