<?php
$con=mysqli_connect("localhost","数据库用户名","数据库用户密码","数据库名");
// 检测连接
if (mysqli_connect_errno()) {
echo "连接失败: " . mysqli_connect_error();
}
//根据表id修改指定的内容
mysqli_query($con,"UPDATE hy_user SET name='这里是修改的内容'
WHERE id='1'");
//关闭之前打开数据库
mysqli_close($con);
?>