Hey guys i want a sum of an mysql query and an php variable. Is there a function to do this? Here is what i tried:
$result3 = mysql_query($sql3);
while ($resultarray3 = mysql_fetch_array($result3)){
$Ergebnis = $Menge + $resultarray['Bestand'];
echo $Ergebnis;
}
Can anyone help me on this?
Edit: I want a sum of an php variable and an mysql query not of two sql tables!!!!
1 Answer