21,891
社区成员
发帖
与我相关
我的任务
分享$link = $_GET['link'];
$con = mysql_connect("localhost", "mysql_user", "mysql_password");
mysql_select_db("database", $con);
$result = mysql_query("SELECT * FROM 某表 where 某字段='$link'", $con);
$num_rows = mysql_num_rows($result);
if($num_rows > 0){
跳转...
}else{
echo "显示域名非法";
}