How to Update one column (point) in php sql [duplicate]

It is very easy…

$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);

Next time don’t ask so stupid questions here… use Google

Leave a Comment