<?
$host
="localhost";
$username="root";
$pass_word="";
$db="reg";
mysql_connect($host,$username,$pass_word) or die ("ติดต่อกับฐานข้อมูล Mysql ไม่ได้ ");
mysql_select_db($db) or die("เลือกฐานข้อมูลไม่ได้");
//$sql = "SELECT * FROM student,faculty,department,branch,rent   WHERE (StudentID like '%$studentid%') and (student.bran_code=branch.bran_code)  and (student.StudentID=rent.RentID) ORDER BY StudentID,IsreturnAll";

$sql "SELECT * FROM StudentMaster, StudentBio  WHERE (studentId='492101001') and (StudentMaster.studentId=StudentBio.studentId)";

$dbquery mysql_query($sql);

while(
$resultmysql_fetch_array($dbquery))
{
    
$information$result["StudentName"];
    echo 
"$information";
}
?>