AGAN agan programer minta tipnya donk,masih bingung sama tampilan dari tampilan form yang saya buat.kenapa yang tampil bukan dari databasenya y??
Spoiler for Tampilan form dari database:
Spoiler for SCRIPT PHP:
<head>
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<title>Title here!</title>
</head>
<body>
<?
mysql_connect("localhost","root","password");
mysql_select_db("outbound");
echo "<table border=1>
<tr>
<td align=center colspan=7>DATA PEMESANAN TIKET OUTBOUND</td>
<tr>
<th>No</th>
<th>Tanggal</th>
<th>Nama Pemesan</th>
<th>Jenis Outbound</th>
<th>Jumlah Tiket</th>
<th>Jenis Penginapan</th>
<th>Total Biaya</th>
</tr>";
$tampil=mysql_query("select * from data_outbound");
while($data=mysql_fetch_array($tampil))
{
echo"<tr>";
echo"<td>$data [no]</td>";
echo"<td>$data [tanggal]</td>";
echo"<td>$data [nama]</td>";
echo"<td>$data [jenis_outbound]</td>";
echo"<td>$data [jumlah_tiket]</td>";
echo"<td>$data [jenis_penginapan]</td>";
echo"<td>$data [total_biaya]</td>";
echo"<tr>";}
echo "</table>";
$jumlah = mysql_num_rows($tampil);
?>
<a href="input_outbound.php">Kembali Ke Form Input</a>
</body>
</html>