Location: PHPKode > projects > Dynamic Band Manager > dbm-current/edit_disk.php
<?
$disk_id=$_GET['disk_id'];
include "permissions.php";
include "admin_headers.php";

if (($logged_in!="1") || ($edit_disk!="1")){
	echo "dbm:=>You are not authorised to view this page.";
	exit;
	}
include "conf.php";
$sql="SELECT * FROM dbm_disks WHERE disk_id='$disk_id'";
$result=mysql_query($sql,$link);

$row=mysql_fetch_array($result);
$disk_id=$row['disk_id'];
$dtitle=$row['title'];
$released=$row['released'];
$about=$row['about'];
$image=$row['image'];
$link1=$row['link'];
$price=$row['price'];
	
?>
<table width="100%"><tr><td bgcolor="#ececec"><center><b>Edit Disk</center></b></td></tr></table><br><br>
<form action="do_edit_disk.php" method="post">
<center>
	Disk name<br><textarea rows="1" cols="40" name="dtitle"><? echo $dtitle; ?></textarea><br><br>
	Release date<br><textarea rows="1" cols="40" name="released"><? echo $released; ?></textarea><br><br>
	About the disk<br><textarea name="about" rows="10" cols="40"><? echo $about; ?></textarea><br><br>
	Price<br><textarea name="price" rows="1" cols="40"><? echo $price; ?></textarea><br><br>
	Link to buy<br><textarea name="link1" rows="1" cols="40"><?echo $link1; ?></textarea><br><br>
	Image File<br><textarea name="image" rows="1" cols="40"><? echo $image ; ?></textarea><br><br>
	<input type="hidden" name="disk_id" value="<? echo $disk_id; ?>">
	<input type="submit" value="Update">
	</center>
	</form>
	
<?
include "admin_footers.php";
?>
Return current item: Dynamic Band Manager