hi i was wondering how should i tackle this problem as i got stuck on the delete feature, getting data is fine deteling is the problem since now i made the following:
<?php
include 'cms/core/config.php';
include 'cms/core/opendb.php';
// get data
$query = "SELECT id, name FROM ody_admin.templates ORDER BY id";
$result = mysql_query($query) or die('Error : ' . mysql_error());
exit;
// remove data and skin file from server
$query = "DELETE FROM ody_admin.templates WHERE name='$name'";
$result = mysql_query($query) or die('Error : ' . mysql_error());
exit;
include 'cms/core/closedb.php';
?>
<form name="" method="post" action="<?php echo $PHP_SELF;?>">
<select name="skin" id="skin">
<?php while($row=mysql_fetch_array($result)) { ?>
<option value="<?php echo $row['name']; ?>"><?php echo $row['name']; ?></option>
<?php } ?>
</select>
<input type="submit" name="delete" id="delete" value="Delete Skin" />
</form>
thanks alot in advance guys!