Forum Moderators: coopster
if($_REQUEST['action']=="del")
{
mysql_query("DELETE FROM cds WHERE id={$_REQUEST['id']};");
}
not sure how to create an update option off of the action
UPDATE cds set Title='$Title', ArtistFirstName='$ArtistFirstName', ArtistLastName='$ArtistLastName', year = '$year' where id=$_REQUEST['id'];
Put this in appropriate setions like del statment. You can check this through as
if(isset($_REQUEST['id']))
{
//Your Query will be here
}