请帮助我用php和sql编写完整的代码,以仅更新下表中的(点)。
表名 : 叮
id_user : 12
name : lisa
username : lisa1990
password : User123
point : 12930
这很容易...
$con = mysql_connect("servername","username","password");
mysql_select_db("databasename");
$command = "UPDATE tuser SET point='your value' where id=whatever";
//replace 'your value' with the new value and "whatever" with the user id
mysql_query($command);
mysql_close_connection($con);
下次不要在这里问那么愚蠢的问题...使用谷歌