📄 gallery_2.php
字号:
<?php
$conn = @mysql_connect("localhost", "jackie", "123456") or die("Unable to connect to SQL server");
$db = @mysql_select_db("users", $conn) or die("Unable to select database");
$query="select * from auth_users where id=$id";
$result=mysql_query($query,$conn);
$row=mysql_fetch_array($result);
if($result)
{
$cookie = $row["username"];
setcookie ("auth", $cookie);
header( "Location: http://82.39.116.47/reg/PHP_Photo_Gallery.php");
}else{
echo ("hello");
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -