0 && strlen($Password)>0){ $SQL="Select * from Users where Username='$Username' and Password = '$Password' "; $isPassed=$db->numrow($SQL); if($isPassed>0) { $SQL="Select * from Users where Username='$Username' and Password = '$Password' "; $result=$db->query($SQL); if($row = mysql_fetch_assoc($result)) { $_SESSION[UserAuth_PASS] = true; $_SESSION[UserAuth_ID] = $row['ID']; $_SESSION[UserAuth_USERNAME] = $row['Username']; $_SESSION[UserAuth_FIRSTNAME] = $row['FirstName']; $_SESSION[UserAuth_LASTNAME] = $row['LastName']; $_SESSION[UserAuth_HIGHESTTAB] = $row['HighestTab']; $url = 'http://tourismthailand-middleeast.org/certificate/certificate.php'; header('Location: ' . $url, true, $permanent ? 301 : 302); exit(); } } else { } } else { } } ?> Tourism Thailand Middle East Certificate

Welcome

Amazing Thailand Travel Academy Learning Program