$("#send").click(function(){
$.post("test.php", { name: "John", time: "2pm" }, function(){
$(location).attr('href', '/test.php');
});
});
update users set balance=balace+15 where id=user_id
select balance from users where id=user_id
в msdn, вестимо. Есть еще в vs sdk примеры, конкретно вот этот http://code.msdn.microsoft.com/Designer-View-Over-XML-20a81f17
mysql> select * from test1;
+----+-------+--------+-------+
| id | count | weight | price |
+----+-------+--------+-------+
| 1 | 1 | 0.1 | 100 |
| 2 | 2 | 0.6 | 200 |
| 3 | 3 | 1.2 | 250 |
| 4 | 5 | 2 | 300 |
+----+-------+--------+-------+
4 rows in set (0.00 sec)
mysql> select * from test1 having (count-4)>=0 order by count desc limit 1;
+----+-------+--------+-------+
| id | count | weight | price |
+----+-------+--------+-------+
| 4 | 5 | 2 | 300 |
+----+-------+--------+-------+
1 row in set (0.00 sec)