hi guys.. i need your help..
i want to display the user's login information.
like, storage location..but im not sure how to do it..
this is how i try to do it..
$tenantID = $_GET['tid'];
"
"
"
$query_recTenantuser = "SELECT * FROM md_storage WHERE tenantID='".$tenantID."'";
$rs_recTenantuser = mysql_query($query_recTenantuser) or die ('Query failed: ' . mysql_error(). "<br />\n $query_recTenantuser");
$recTenantuser = mysql_num_rows($rs_recTenantuser);
"
"
"
<tr>
<td class="labelcell"><strong>Storage Location</strong></td>
<td> : </td>
<td class="datacell">
<select name="stID">
<option value="">-Sila Pilih-</option>
<?php
while ( ( $recTenantuser = mysql_fetch_array($rs_recTenantuser) ) != false ) {
?>
<option value="<?php echo $recTenantuser['stID']; ?>"><?php echo $recTenantuser['stLoc']; ?></option>
<?php
} // close while
?>
</select>
</td>
</tr>
if the user login, only the information about him/her will be shown.