【php开源代码栏目提醒】:以下是网学会员为您推荐的php开源代码-9-3.php,希望本篇文章对您学习有所帮助。
<?
$link = mysql_connect("localhost","root","123456");
mysql_query("use db");
$sqlstr="select * from user where id ='".$_POST['user_id']."' and passwd = '".$_POST['user_passwd']."'";
$result = my
sql_query($sqlstr,$link);
if(
mysql_num_rows ($result)==1){
echo "<center>
会员登录成功</center>";
}else{
echo "<center>会员登录失败</center>";
}
mysql_free_result($result);
mysql_close($link);
?>