SELAMAT DATANG DI WEBSITE SARJANA GAGAL

Mahasiswa VS Dosen

Ayo belajar buat website 2

Posted on March 21, 2013 at 2:20 AM

Lanjut lagi,
materi lanjutan dari Ayo belajar membuat website 1

Buka Dreamwever anda, buat sebuah file php baru

Lalu anda tuliskan script seperti berikut


 <html >

       <head>

       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

       <link rel="shortcut icon" href="images/favicon.ico" >

       <title>:: SMK NEGERI 3 LUBUKLINGGAU : your excelent choice ::</title>

       <style type="text/css">

       <!--

       .style1 {color: #66CCFF}

       .style3 {color: #FFFFFF}

.style6 {font-family: monospace}

       -->

       </style>

       </head>

<body bgcolor="#fbf8f8">

<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#0099FF">

 <tr>

  <td colspan="2"><div align="center"><img src="images/header.gif"  width="807" height="146" /></div></td>

 </tr>

 <tr>

  <td width="194" valign="top"><table width="188" border="0" cellspacing="0" cellpadding="0">

   <tr>

    <td>&nbsp;</td>

    <td >&nbsp;</td>

   </tr>

   <tr>

    <td width="36"><img src="images/menu-bullet.gif" width="20" height="25" /></td>

    <td width="152" ><p class="style1"><a href="?halaman=Home"class="style6">Beranda</a></p></td>

   </tr>

   <tr>

    <td><img src="images/menu-bullet.gif"  width="20" height="25" /></td>

    <td><a href="?halaman=Profil" class="style6">Profil Sekolah </a></td>

   </tr>

   <tr>

    <td><img src="images/menu-bullet.gif" width="20" height="25" /></td>

    <td><a href="index.php?page=fasilitas" class="style6">Fasilitas</a></td>

   </tr>

   <tr>

    <td><img src="images/menu-bullet.gif" width="20" height="25" /></td>

    <td><a href="?halaman=Prestasi" class="style6">Prestasi</a></td>

   </tr>

   <tr>

    <td><img src="images/menu-bullet.gif"  width="20" height="25" /></td>

    <td><a href="index.php?page=pengajar" class="style6">Staf Pengajar </a></td>

   </tr>

   <tr>

    <td><img src="images/menu-bullet.gif" width="20" height="25" /></td>

    <td><a href="index.php?page=denah" class="style6">Denah</a></td>

   </tr>

   <tr>

    <td><img src="images/menu-bullet.gif" width="20" height="25" /></td>

    <td><a href="index.php?page=berita" class="style6">Berita</a></td>

   </tr>

   <tr>

    <td><img src="images/menu-bullet.gif"  width="20" height="25" /></td>

    <td><p><a href="index.php?page=bukutamu"  class="style6">Buku Tamu </a></p>

      </td>

   </tr>

   <tr>

    <td><img src="images/menu-bullet.gif" width="20" height="25" /></td>

    <td><p><a href="index.php?page=alumni"  class="style6">Alumni</a></p>

      </td>

   </tr>

  </table></td>

  <td width="613" valign="top" bgcolor="#FFFFFF"><table width="600" border="0" align="right" cellpadding="0" cellspacing="0">

   <tr>

    <td width="600" align="center"><h3><font color="#6633CC"><?php print($menu) ?> </font></h3></td>

   </tr>

   <tr>

    <td><hr></td>

   </tr>

   <tr>

    <td><font color="#6600FF"><?php include "bukahalaman.php";?></font></td>

   </tr>

  </table></td>

 </tr>

 <tr>

  <td colspan="2"><hr />

  <p align="center" class="style3">&copy; 2013, SMK NEGERI 3 LUBUKLINGGAU Powered By : Lukman Edy </p> </td>

 </tr>

</table>

</body>

</html>

 Simpan file ini  dengan nama template.php

Lanjut lagi yoo

buat document php baru lagi tekan ctrl + new pilih php tekan create

<?php

function PrintModules($arr_modules) {

                    foreach($arr_modules as $modfname) {

                         include($modfname);

                    }

}

?>

Simpan file ini dengan nama globals.php

mumpung lagi asiik kita lanjutkan

buat document php baru lagi tekan ctrl + new pilih php tekan create

<?php

include("template.php");

?>

Simpan file ini dengan nama index.php


Lanjutkan pak beye

buat document php baru lagi tekan ctrl + new pilih php tekan create

<?PHP

$koneksi=mysql_connect('localhost','root','');

if (!$koneksi)

 {print "koneksi tidak berhasil";

}

mysql_select_db("smk3");

Simpan file ini dengan nama koneksi.php

Semua file diatas simpan kedalam folder C: xampp/htdoc/lalu anda buat folder baru dan beri nama web_dinamis, sesuaikan di mana anda menginstal xampp di komputer anda.
sekian dulu utk hari ini capek bro, bsok kita lanjut lagi

Categories: None

Post a Comment

Oops!

Oops, you forgot something.

Oops!

The words you entered did not match the given text. Please try again.

Already a member? Sign In

4 Comments

Reply sii bungsu
1:05 AM on March 22, 2013 
terus gmn lagi nie pakdos
Reply tigor
10:24 AM on March 28, 2013 
yang coding untuk sambutan????
Reply teluk_segara
11:40 PM on March 28, 2013 
tigor says...
yang coding untuk sambutan????

Sory mas bro ane lupa publish cuma kesimpan d draf doang..
skarang silahkan download d Ayo belajar buat website 3
Reply AlbertLag
2:19 AM on August 11, 2018 
The prostate is an essential a part of a male's the reproductive system. It secretes fluids that assist the transportation and activation of sperm. The prostate can be found just before the rectum, below the bladder and all around the urethra. When there is prostate problem, it will always be really really irritating and inconvenient for that patient as his urinary system is directly affected.

The common prostate health conditions are prostate infection, enlarged prostate and prostate cancer.



Prostate infection, also known as prostatitis, is the most common prostate-related symptom in men younger than 55 years of age. Infections with the prostate gland are classified into four types - acute bacterial prostatitis, chronic bacterial prostatitis, chronic abacterial prostatitis and prosttodynia.

Acute bacterial prostatitis is the least common of most kinds of prostate infection. It is due to bacteria found in the large intestines or urinary tract. Patients may feel fever, chills, body aches, back pains and urination problems. This condition is treated through the use of antibiotics or non-steroid anti-inflammatory drugs (NSAIDs) to help remedy the swelling.

Chronic bacterial prostatitis is really a condition of a particular defect inside the gland along with the persistence presence of bacteria within the urinary tract. It can be caused by trauma on the urinary tract or by infections from other areas of the body. A patient may experience testicular pain, spine pains and urination problems. Although it is uncommon, it could be treated by removal with the prostate defect as well as the employment antibiotics and NSAIDs to deal with the soreness.

Non-bacterial prostatitis accounts for approximately 90% coming from all prostatitis cases; however, researchers have not to create the cause of these conditions. Some researchers think that chronic non-bacterial prostatitis occur due to unknown infectious agents while other believe that intensive exercise and lifting might cause these infections.

Maintaining a Healthy Prostate

To prevent prostate diseases, an appropriate weight loss program is important. These are some with the actions to maintain your prostate healthy.

1. Drink sufficient water. Proper hydration is necessary for our health and wellbeing and it will also keep your urinary track clean.

2. Some studies claim that a couple of ejaculations a week will prevent cancer of prostate.

3. Eat beef without excess. It has been shown that consuming more than four meals of beef per week will increase the likelihood of prostate diseases and cancer.

4. Maintain an effective diet with cereals, vegetable and fruits to make certain sufficient intake of nutrients required for prostate health.

The most crucial measure to take to ensure a healthy prostate is always to go for regular prostate health screening. If you are forty years of age and above, you should go for prostate examination at least per year.