$islem = $_GET['islem']; if ( $islem == 'sil' ){ $sil = mysql_query("delete from tabloadı where id='$id' "); if ( $sil ){ echo "silindi"; } }