The question is - How to display the value of the sample? +)
$summa = mysql_query("SELECT SUM(amusd) FROM tabl WHERE status!=0 AND id=$id")or die(mysql_error());
The question is - How to display the value of the sample? +)
$summa = mysql_query("SELECT SUM(amusd) FROM tabl WHERE status!=0 AND id=$id")or die(mysql_error());
Source: https://ru.stackoverflow.com/questions/334495/
All Articles
INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+1;
[Proof] [1] [1]: dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html - Opalosolo