Langsung ke konten utama

Postingan

Menampilkan postingan dengan label PWD

Tugas 2 Pemrograman Web Dinamis

1. Database 2. Koneksi.php <?php mysql_connect("localhost","root",""); mysql_select_db("toko"); ?>  3. Halaman Pengguna (index.php) <p align='right'><a href='form_login.php'>login </a> (untuk admin).</p> <center><h2>Daftar dan harga barang<h2></center> <table border="1" width="550" align="center"> <tr>     <td align="center"width=50 height=20 align="center" width=50><b>Kode</b></td>     <td align="center" width=200><b>Nama Barang</b></td>     <td align='center' width=300><b>Deskripsi</b></td>     <td align='center' width=300><b>Harga</b></td> </tr> <?php include "koneksi.php"; $qdata = mysql_query("select kode,nama,deskripsi, harga from barang"); while($rda...

Tugas Pemrograman Web Dinamis

untuk menginput database melalui php yang pertama harus membuat file untuk menghubungkan php dengan database mysql di sini dinamakan koneksi.php 1. koneksi.php <?php mysql_connect("localhost","root",""); mysql_select_db("daftar_penyakit"); ?> 2.form.php <?php echo "<form action='simpan_data.php' method='post'>"; echo "<table border='0' cellpadding='3' cellspacing='3' align='center' >         <caption><strong><h3>Input Data Penyakit</h3></strong></caption><br/>             <tr>                 <td>Kode Penyakit</td>                 <td>:</td>                 <td><input type='text' name='kode_penyakit'size='4'></td>  ...