们如何小弟我动用不了student数据库

WBOY
Release: 2016-06-13 10:25:55
Original
1022 people have browsed it

请教高手们怎么我动用不了student数据库?
我打了这个PHP的程序,储存在D://WAMP//WWW下


$serverLink = @mysql_connect("localhost","root","")or die("连接服务器失败!程序中断执行!");
mysql_query("set names'gbk'");
$dbLink = @mysql_select_db("student",$serverLink)or die("当前连接服务器失败!程序中断执行!");
if($dbLink){
echo"选择student数据库为当前数据库!";
}
$close = @mysql_close($serverLink);
?>

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template