php+mysql 实现身份验证代码
复制代码 代码如下:<?php $uname=$_POST[“username”]; $pwd=$_POST[“password”]; $link = mysql_connect(‘localhost’, ‘root’, ‘123456’) or die(‘Could not connect: ‘ . mysql_error()); mysql_select_db(‘ruida’) or die(‘Could not select database’); // 执行 SQL 查询 $query = ‘SELECT * FROM user’; $result = mysql_query($
用户评论