1<?php
2$con = mysql_connect("localhost","peter","abc123");
3if (!$con)
4 {
5 die('Could not connect: ' . mysql_error());
6 }
7
8mysql_select_db("my_db", $con);
9
10mysql_query("UPDATE `some_table` SET `value` = `value` + 1000 WHERE `id` = 1");
11
12mysql_close($con);
13?>