Location: PHPKode > scripts > GigKalender > calendar/backend_delArtist.php
<?php
/*
    CREATIVE COMMONS - Attribution-No Derivative Works 3.0 Germany:
    - You may not alter, transform, or build upon this work.
    - Dieses Werk darf nicht bearbeitet oder in anderer Weise verändert werden.
*/
if ( !IsUserAdmin() ) { echo $L_015; }
else
{
  if (isset($_POST['delArtist']))
  {
    if ($_POST['delArtist']==$L_Button23)
    {
      $id = $_POST['id'];
      $SQL = "DELETE FROM ".$prefix."artists WHERE ArtistID = '$id'";
      $resultat = mysql_query($SQL);
      if ($resultat) echo $L_Artist_successfully_deleted;
        else echo '<span class="ERROR">ERROR: backend_delArtist.php Line 18</span><br />';
    }
    if ($_POST['delArtist']==$L_Button24) echo $L_038;
  }
  else
  {
    echo '</head><body>';
    echo $L_220.'<br /><br />';
    $id = $_GET['id'];
    echo ' <form method="post" action="index.php?submenu=calendar&amp;page=backend_delArtist">
            <fieldset>
              <input name="delArtist" id="delArtist" type="submit" value="'.$L_Button23.'" class="button">
              <input name="delArtist" id="delArtist" type="submit" value="'.$L_Button24.'" class="button">
              <input name="id" id="id" type="hidden" value="'.$id.'">
              <input type="hidden" name="http-equiv" value="backend_showAllArtists">
            </fieldset>
          </form>';
  }
}
?>
Return current item: GigKalender