Table with a drop down GET function[done]
Posted: Thu Dec 13, 2007 9:33 am
I have a table where by i want to click on a row and it will display that row's contents under it but also be in between the other rows that the table has.
My idea has worked how ever i cannot get the html to be "between" the rows.. it keeps being echo'd above the table...
this is what i got :
My idea has worked how ever i cannot get the html to be "between" the rows.. it keeps being echo'd above the table...
this is what i got :
Code: Select all
<?
$GetReports = mysql_query("SELECT * FROM reportedusers WHERE StaffRead='{$_SESSION['Current_User']}'")
or die(mysql_error());
If(mysql_num_rows($GetReports) < 1){
?>
<div id="bv_" style="position:absolute;left:303px;top:264px;width:92px;height:48px;z-index:2" align="center">
<font style="font-size:13px" color="#FFFFFF" face="Arial">There are no reports assigned to you!<br></div>
<?
}Else{
?>
<div id="bv_" style="position:absolute;left:160px;top:350px;width:150px;height:22px;z-index:1" align="center">
<table width="600" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="200"><font style="font-size:14px" color="#FFFFFF" face="Arial"><center><b><u>User:</center></b></u></font></td>
<td width="200"><font style="font-size:14px" color="#FFFFFF" face="Arial"><center><b><u>Report ID:</center></b></u></font></td>
</tr>
<?
while($row = mysql_fetch_assoc($GetReports)){
$RecordID = $row['RecordID'];
$Info = $row['Log'];
$ReportedPlayer = $row['ReportedPlayer'];
$GetUserName = mysql_query("SELECT * FROM userregistration WHERE UserID='$ReportedPlayer'")
or die(mysql_error());
$UserNameRow = mysql_fetch_assoc($GetUserName);
$ReportedPlayer = $UserNameRow['Username'];
?>
<tr>
<td width="100"><center><font style="font-size:14px" color="#FFFFFF" face="Arial"><?=$ReportedPlayer?></center></font></td>
<td width="100"><center><font style="font-size:14px" color="#FFFFFF" face="Arial"><a href="pendingreports.php?view=<?=$RecordID?>" style="color:#FFFFFF">View</a></center></font></td>
</tr>
<?
If(isset($_GET['view'])){
?>
<font style="font-size:13px" color="#FFFFFF" face="Arial">UserID: <?=$UserID?><br>
UserName: <?=$UserName?><br>
Money: <?=$Money?><br>
<br>
<a href="viewuerslogs.php?logs=<?=$UserID?>" style="color:#FFFFFFF">View users logs</a><br>
<a href="viewusersmessages.php?messages=<?=$UserID?>" style="color:#FFFFFF">View users messages</a><br>
<a href="Viewusersonsameip.php?ip=<?=$UserID?>" style="color:#FFFFFF">View users on same IP</a></font></div>
<b><u>Player Report Infomation:</u></b><?=$Info?>
<a href="closereport.php?report=<?=$RecordID?>" style="color:#FFFFFF">No Evidence</a><br>
<br>
<a href="secondopinion.php?report=<?=$RecordID?>" style="color:#FFFFFF">Get Second Opinion</a><br>
<br>
<a href="punishment.php?report=<?=$RecordID?>" style="color:#FFFFFF">Guilty</a></u></b></font></div>
<?
}
}
}
?>