function process()
{
$host="localhost";
$dbname="mydatabase";
$user="root";
$pass="12345";
$db = new mysqli($host, $user, $pass, $dbname);
$objDB = mysql_select_db("mydatabase");
/* check connection */
if (mysqli_connect_errno()) {
die("Unable to connect!");
}
mysql_query("SET NAMES TIS620");
$std_code=empty($_POST['std_code'])? die ("ERROR : Enter a ID"): $db->real_escape_string($_POST['std_code']);
$query = "select * from customer,student where customer.std_code=student.std_code AND customer.std_code like '%$std_code%'";