mas biasanya kan aku buat form untuk update kaya gini.
<?php
  session_start();
?>
<html lang="en">
<head>
<title>Update</title>
</head>
<body>
<?php
  include 'koneksi.php';
  $data       = mysql_query("SELECT * FROM admin WHERE user = '".$_SESSION['user']."'");
  $hasil      = mysql_fetch_array($data);
?> 
<form class="block-content form" method="post" action="http:update.php" name="myform"> 
                <legend>Profile</legend>
                <table cellpadding="3" class="table-padding">
                    <tr title="Required">
                        <td><b>Full name</b><span class="required">*</span></td>
                        <td>:</td>
                        <td><input type="text" name="nama" id="nama" validation="isNotEmpty" title="nama" style="width:300px" value="<?php echo $hasil['nama']; ?>" /></td>
                    </tr>
                    <tr title="Required">
                        <td><b>Telephone</b><span class="required">*</span></td>
                        <td>:</td>
                        <td><input type="text" name="telephone" id="telephone" validation="isNotEmpty,isEmail" title="Email" style="width:300px;" value="<?php echo $hasil['telephone']; ?>" /></td>
                    </tr>
					<tr title="Required">
                        <td><b>Status</b><span class="required">*</span></td>
                        <td>:</td>
                        <td><input type="text" name="status" validation="isNotEmpty,isEmail" title="Email" style="width:300px;" value="<?php echo $hasil['status']; ?>" readonly=""/></td>
                    </tr>                
                </table>
        </div>
    </div>
</form>                   
nah terus mas kan aku rubah jadi gini...
<?php
session_start();
include 'koneksi.php';
$arrayCurrentPath = explode('?',$_SERVER['REQUEST_URI']);
$url = substr($arrayCurrentPath[0], strlen(BASE_URL));
$dataurl = mysql_fetch_array(mysql_query("select * from aksi where url='".$url."'"));
$akses = mysql_query("select * from tipe_user_aksi where id_aksi='".$dataurl['id']."' and id_user='".$_SESSION['user']."'");
if(mysql_num_rows($akses) <= 0){
echo 'Forbidden';
exit;
}
?>
<?php
  $data       = mysql_query("SELECT * FROM user WHERE user = '$akses['user']'");
  $hasil      = mysql_fetch_array($data);
?> 
dengan tabel yang sama ko ga muncul ya mas, terus bagaimana supaya bisa data muncul berdasarkan yang login? semacam update data diri di sosial media gitu loh mas
terima kasih