【php开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了php开源代码-code7.27.php的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<?php
$link=mysql_connect("localhost","root","0");
mysql_select_db("db_student");
$id = 200812005;
$sname ='Yound Tang';
$sex ='men';
$age = 27;
$exec="update student set name ='$name', sex='$sex',age='$age' where id= $id";
if(my
sql_query($exec))
{
echo "修改成功";
}
else
{
echo "修改失败";
}
?>