T0 Lampiran Institutional Repository | Satya Wacana Christian University: Perancangan Sistem Informasi Reservasi Hotel Berbasis Web

59

LAMPIRAN
Login Member









Login



60

Halaman Registrasi
include("koneksi.php");

//koneks ke server/host MySql
$link = mysql_connect($host, $username, $userpass)
or die ("Could not connect to mysql because ".mysql_error());
// pilih database
mysql_select_db($dbase)
or die ("could not select database because ".mysql_error());
// cek kesamaan username
$check = "SELECT id FROM member WHERE username = '".$_POST['username']."';";
$qry = mysql_query($check) or die ("Could not match data because ".mysql_error());
$num_rows =
mysql_num_rows($qry);
if ($num_rows !=0)
{
echo " Maaf, Username '".$_POST['username']."' sudah ada.";
echo "Kembali ke form registrasi. ";
}
if(empty($num_rows)){
// cek kesamaan email
$check2 = "SELECT id FROM member WHERE email = '".$_POST['email']."';";
$qry2 = mysql_query($check2) or die ("Could not match data because

".mysql_error());

61

$num_rows2 = mysql_num_rows($qry2);
if ($num_rows2
!=0) {
echo "sorry, email
'".$_POST['email']."' already exists.";
echo "
Return to registration form.";
}

if(empty($num_rows2)){

// masukkan data
$insert = mysql_query("INSERT INTO member values

('NULL','".$_POST['username']."','".$_POST['password']."','".$_POST['emai
l']."','user',NOW(),'".$_POST['first_name']."','".$_POST['last_name']."','".$_POST['ad

dress']."','".$_POST['gender']."')") or die("404 Error");
//tampilkan pesan sukses
echo " Congratulations! Your account has been created.";
echo "Here your data that you created :";
echo "";
echo "Username : ".$_POST['username']."";
echo "Password : ".$_POST['password']."";
echo "Email : ".$_POST['email']."";
echo "your name : ".$_POST['first_name']."";
echo "address : ".$_POST['address']."";
echo "gender : ".$_POST['gender']."";
echo "";

62

Halaman Home






Home 
Room 
Booking 
Contact 



      Welcome

         
         To
         
     Susan Spa n Resort

EXPLORE AND EXPERIENCE THE JOY OF SUSAN
SPA AND RESORT IN BANDUNGAN, KAB. SEMARANG
SUSAN Spa & Resort is regarded as one of Java’s leading spa destination. Located in
Central Java at Bandungan, Semarang. Susan Spa & Resort challenge your senses
with magnificent views from 1.100m above sea level in the hills of Mount Ungaran.

SUSAN Spa & Resort is a secret gateway to fulfill your dream for irresistable
beauty, health and a place to satisfy your leisure time. Stay with us at our beautifully
designed rooms and enjoy our spa in the sky for your relaxation. We offer you a true
absolute and rejuvenating spa experience.
Our spa products range from aromatherapy massage oil to various body
treatments, for example : Sensual Sindoro, Enlighten Merbabu, Uplifting Sumbing,

63

Halaman Kontak

Halaman Room


Home 
Room 
Booking 
Contact 

Contact




We would love to talk to you
and answer all of your questions

SUSAN SPA N RESORT
Jl.piyoto bandungan
7km form Ambarawa
1010 WHATEVER



Phone Number
00 77 66 55 33
00 77 66 55 34

SOSIAL MEDIA
[email protected]


64

Halaman Room



Home 
Room 
Booking 
Contact 



Please choose the type of
room and its facilities that we have provided for you. and enjoy the beauty of the
Ungaran Mountains and Lake Marsh Scenic .

All Tipe
Room








65

Halaman Booking



Back




Home




Step 1: Please Select Dates

Online
Booking


Start Date:
End Date: