<?php
include "connect.php";
$id=$_GET['idv'];
$view = "select * from mhs where nim ='$id'";
$hasil = mysql_query($view);
$data=mysql_fetch_array($hasil);
echo"<table border =0 width=50% align=center bgcolor=#CCFFFF><strong>
<tr><td bgcolor=#99FF99 colspan=2 align=center><h3>::VIEW MHS:: </h3></td></tr>
<tr><td>NIM </td>
<td>: $data[0]</td></tr>
<tr><td>Nama </td>
<td>: $data[1]</td></tr>
<tr><td>Tingkat </td>
<td>: $data[2]</td></tr>
<tr><td>Kelas</td>
<td>: $data[3]</td></tr>
<tr><td>Semester </td>
<td>: $data[4]</td></tr>
<tr><td>Kota lahir </td>
<td>: $data[5]</td></tr>
<tr><td>Tgl Lahir </td>
<td>: $data[6]</td></tr>
<tr><td>Agama </td>
<td>: $data[7]</td></tr>
<tr><td>Jenkel</td>
<td>: $data[8]</td></tr>
<tr><td>Alamat </td>
<td>: $data[9]</td></tr>
<tr><td>Telp </td>
<td>: $data[10]</td></tr>
<tr><td>Wali </td>
<td>: $data[11]</td></tr>
<tr><td>Prodi</td>
<td>: $data[12]</td></tr>
<tr><td>Angkatan </td>
<td>: $data[14]</td></tr>
<tr><td>Status </td>
<td>: $data[15]</td></tr>
<tr><td>Photo </td>
<td><img src=photo2.php?idv=$data[0] width=150 /></td></tr>
<tr><td bgcolor=#99FF99 colspan=2 align=right>| <a href=userbaak.php>[ back ]</a></td></tr>
</strong> </table>";
?>
