قمت انشاء داتا بيز من phpMyAdmin

وبعد ذلك كتبت الكود
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<?php
$link=mysql_connect("localhost","root",vertrigo);
if(! $link){
die ('cannot connect'.mysql_error());
}
else
echo"connected successfully";
mysql_select_db("student",$link);
if(! $link){
die ('cannot connect'.mysql_error());
}
else
echo"bravooo";
$query="SELECT*FROM student ORDER BY `id1` ASC";
mysql_select_db("student",$link);
$result=mysql_query($query,$link);
mysql_select_db("student",$link);
if(!$result)
{
echo" <strong><center> Search operation has failed.. error is".mysql_error()." </strong></center>";
exit;
}
?>
</body>
</html>وكان الناتج
connected successfullybravooo Search operation has failed.. error isUnknown database 'student'
لماذا ظهر هذا الخطأ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
وجزاكم الله خيرا