rendered paste body<?PHP session_start(); require("access.php"); ?><?php include("top2.php"); ?><?php$query = mysql_query("select * from gallery WHERE owner = '".$_GET['gerbitzid']."'") or die(mysql_error());while($data = mysql_fetch_array($query)){?><table width="433" border="0"> <tr> <td width="89"><div align="center"><strong>Photo Name:</strong></div></td> <td colspan="4"><?=$data['short_title']?> </td> </tr> <tr> <td><div align="center"><strong>Title:</strong></div></td> <td colspan="4"><?=$data['title']?> </td> </tr> <tr> <td height="154"><div align="center"><strong>Image: </strong></div></td> <td colspan="4"><img src="<?=$data['image_loc']?> " width="300" height="200"></td> </tr> <tr> <td height="62"><div align="center"><strong>Description:</strong></div></td> <td colspan="4"><?=$data['description']?> </td> </tr> <tr> <td> </td> <td width="85"><?phpif ($active == '1'){ echo '<form method="post" action="gallery_deactivate.php?id=' . $data['id'] . '">'; echo '<input name="De-Activate" type="submit" id="De-Activate" value="De-Activate">'; echo '</form>';}else{ echo '<form method="post" action="gallery_activate.php?id=' . $data['id'] . '">'; echo '<input name="Activate" type="submit" id="Activate" value="Activate">'; echo '</form>';}?></td> <td width="84"><form method="post" action="gallery_remove.php?id=<?=$data['id']?>"><input name="Delete" type="submit" id="Delete" value="Delete"></form></td> <td width="59"><form method="post" action="gallery_edit.php?id=<?=$data['id']?>"><input name="Edit" type="submit" id="Edit" value="Edit"></form></td> </tr></table><?PHP};?><?php include("bottom2.php"); ?>