laporan individu, contoh laporan individu, contoh tugas individu, example personal projectMata Pelajaran,

Document Sample
laporan individu, contoh laporan individu, contoh tugas individu, example personal projectMata Pelajaran, Powered By Docstoc
					               Laporan Tugas Individu
          Pemrograman Web dan Internet
          http://www.andriyansyah.my-php.net




                        Oleh :


                  Andri Yansyah Putra
                      09.21.0461




SEKOLAH TINGGI MANAJEMEN INFORMATIKA DAN KOMPUTER
           STMIK “AMIKOM” YOGYAKARTA
                         2010
Berikut Struktur Database Web Pribadi Saya

      Id                 Varchar             4                 Primary Key

      Nama               varchar             25                Not Null

      Email              varchar             15                Not Null

      Pesan              varchar             200               Not Null

      Waktu              Date Time           Yyyy/dd/mm        Not Null



Berikut Database yang Sudah Di Masukan ke dalam Server Localhost database PHPmyadmin
Screen shoot halaman depan




Screen shoot input dan screen shoot output
Script koneksi

<?php

$username="root";

$password="";

$database="aplikasi";

mysql_connect ("localhost",$username,$password) or die ("Tidak dapat tersambung ke

database, karena: " . mysql_error());

mysql_select_db ($database)or die ("database tidak ditemukan");

?>
Sript bukutamu.php ( Input )

<?php
print"
<form action=\"ver_bukutamu.php\" method=\"post\">
<b>Nama</b><br>
<input type=\"text\" name=\"nama\" maxlength=\"50\" size=\"40\"><br>

<b>Email</b><br>
<input type=\"text\" name=\"email\" maxlength=\"50\" size=\"45\"><br>

<b>Pesan</b><br>
<textarea name=\"pesan\" cols=\"42\" rows=\"5\"></textarea><br>
<input type=\"submit\" value=\"SUBMIT\">
</form>
";
?>

Script Proses Input ver_bukutamu.php ( Proses Penekanan Tombol Submit )

<?php
include "sambung.php";
$namax=$_POST["nama"];
$emailx=$_POST["email"];
$pesanx=$_POST["pesan"];

//$waktu=strftime("%Y-%m-%d %H:%M:%S", mktime (date("H"), date("i"), date("s"),
date("m"),
//date("d"), date("Y")));

if (!$namax || !$emailx || !$pesanx)
{
 print "<font color=\"red\">Warning: Semua form mohon diisi dengan benar.</font><br>
 <input type=button value=KEMBALI onclick=\"self.history.back();\">
 ";
 }

else if (ereg("^.+@.+\\..+$", $emailx))
 {
 $pesanxx=strip_tags($pesanx);
 mysql_query("insert into tamu (nama,email,pesan,waktu) values
('$namax','$emailx','$pesanxx','$waktu')");

print "Terimakasih $namax, pesan Anda telah masuk...<br>
<a href=\"lihat_bukutamu.php\">Lihat bukutamu...</a>
";
}

else
 {
 print "<font color=\"red\">Warning: Email Anda salah. Mohon dicek
kembali!</font><br>
 <input type=button value=KEMBALI onclick=\"self.history.back();\">
 ";
 }
?>

Script Css style.css ( Mempercantik Halaman Site )


body {
         background: #000000;                 color: #92E80B;
         font-family: tahoma, arial;          font-weight: bold;
         font-size: 11px;                     text-decoration: none;
         font-weight: normal;          }
         line-height: 15px;
         margin: 0;                    #footer a:hover, #footer a:active {
         padding: 0;                          color: #FFFFFF;
         text-align: center;                  font-weight: bold;
}                                             text-decoration: underline;
                                       }
* html body {
       line-height: 13px;              #nav a:link {
}                                             background: url(images/btn-bg.gif) no-repeat;
                                              color: #C7C6C6;
a:link {                                      display: block;
        color: #E7B12D;                       font-size: 10px;
        font-weight: bold;                    font-weight: bold;
        text-decoration: none;                height: 20px;
}                                             padding-top: 6px;
                                              text-align: center;
a:visited {                                   text-decoration: none;
        color: #E7B12D;                       width: 71px;
        font-weight: bold;             }
        text-decoration: none;
}                                      #nav a:visited {
                                              background: url(images/btn-bg.gif) no-repeat;
a:hover, a:active {                           color: #C7C6C6;
       color: #FFFFFF;                        display: block;
       font-weight: bold;                     font-size: 10px;
       text-decoration: underline;            font-weight: bold;
}                                             height: 20px;
                                              padding-top: 6px;
#footer a:link {                              text-align: center;
       color: #92E80B;                        text-decoration: none;
       font-weight: bold;                     width: 71px;
       text-decoration: none;          }
}
                                       #nav a:hover, #nav a:active {
#footer a:visited {                           background: url(images/btn-bg.gif) no-repeat;
                                              color: #FFFFFF;
                                              display: block;
                                              font-size: 10px;
                                              font-weight: bold;
                                              height: 20px;
                                              padding-top: 6px;
#bottom {                                                         float: left;
       background: url(images/main-bottom.jpg) no-repeat;         margin-left: 20px;
       clear: both;                                               margin-top: 10px;
       display: block;                                            width: 300px;
       height: 236px;                                      }
       width: 820px;
}                                                          #footer {
                                                                  clear: both;
#container {                                                      color: #FFFFFF;
       margin: 0 auto;                                            padding-left: 200px;
       text-align: left;                                          width: 620px;
       width: 820px;                                       }
}
                                                           * html #footer {
#contenttr {                                                      padding-left: 210px;
       background: url(images/top-right-bg.jpg) no-repeat;        width: 610px;
       color: #BBD2A8;                                     }
       display: block;
       height: 355px;                                      #footer ul {
       padding-left: 30px;                                        list-style: none;
       padding-top: 30px;                                         margin: 0;
       width: 558px;                                              margin-left: 20px;
}                                                                 padding: 0;
                                                           }
#csoon {
       background: url(images/c-soon-bg.jpg) no-repeat;    #footer li {
       color: #B7B7B7;                                            float: left;
       float: left;                                               list-style: none;
       display: block;                                            margin: 0;
       height: 157px;                                             margin-right: 20px;
       margin-left: 15px;                                         padding: 0;
       margin-top: 60px;                                   }
       padding-left: 35px;
       padding-top: 15px;                                  #header {
       width: 134px;                                              width: 820px;
}                                                          }

#deal {                                                    #logo {
          margin-top: 30px;                                        background: url(images/main-
          width: 588px;                                    left.jpg) no-repeat;
}                                                                  display: block;
                                                                   float: left;
#dealleft {                                                        height: 426px;
       float: left;                                                width: 215px;
       padding-top: 10px;                                  }
       width: 160px;
}                                                          #nav {
                                                                    margin-bottom: 10px;
#dealright {                                                        margin-top: 10px;
                                                                    width: 588px;
                                                           }
                                                      #videobox {
#nav ul {                                                     background: url(images/video-box-
       list-style: none;                              bg.jpg) no-repeat;
       margin: 0;                                             display: block;
       margin-left: 20px;                                     float: left;
       padding: 0;                                            height: 120px;
}                                                             padding-left: 20px;
                                                              padding-top: 15px;
#nav li {                                                     margin-left: 20px;
        float: left;                                          margin-top: 80px;
        list-style: none;                                     width: 391px;
        margin: 0;                                    }
        margin-right: 20px;
        padding: 0;                                   #videobox ul {
}                                                            list-style: none;
                                                             margin: 0;
#player {                                                    margin-left: 20px;
       float: left;                                          margin-top: 10px;
       display: block;                                       padding: 0;
       height: 105px;                                 }
       margin-left: 25px;
       margin-top: 78px;                              #videobox li {
       width: 106px;                                         float: left;
}                                                            list-style: none;
                                                             margin: 0;
* html #player {                                             margin-right: 50px;
       margin-left: -22px;                                   padding: 0;
}                                                     }

#screenshots {                                        /* -------------------------------------------------
       background: url(images/ss-bg.jpg) no-repeat;   CLASE'S --- */
       display: block;
       float: right;                                  .calign {
       height: 132px;                                         margin-left: 110px;
       margin-left: 28px;                             }
       margin-right: 80px;
       padding-left: 20px;                            .heading {
       padding-top: 35px;                                    color: #FFFFFF;
       width: 177px;                                         font-size: 14px;
}                                                            font-weight: bold;
                                                      }
* html #screenshots {
       margin-right: 40px;                            .heading2 {
}                                                            color: #E7B12D;
                                                             font-size: 14px;
#topright {                                                  font-weight: bold;
       float: left;                                   }
       width: 588px;
}                                                     .ss1 {
                                                               float: left;
                                                               margin-bottom: 5px;
                                                      }
.ss2 {
          float: left;
          margin-bottom: 5px;
          margin-left: 5px;
}

.ss3 {
          clear: both;
          float: left;
}

.ss4 {
          float: left;
          margin-left: 5px;
}

.play {
          margin-left: 115px;
          margin-top: 10px;
}

.player1 {
        float: left;
}

.video {
        float: left;
        margin-right: 14px;
}

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:6223
posted:3/19/2010
language:Indonesian
pages:9
Description: Pemahaman Tentang cara membuat laporan tugas individu atau tugas pribadi