Location: PHPKode > scripts > WH Board > wh_board/admin/badwords_delete.php
<?php require('management/admin_functions/session.php'); ?>
<?php require('management/admin_layout/header.php'); ?>

    <ul id="breadcrumbs">
        <li><a href="index.php"><?php echo $lang['main_navigation']; ?></a></li>
        <li><a href="badwords.php">Badwords</a></li>
        <li><a href="badwords_delete.php" class="actual">Badwords <?php echo $lang['blank_delete']; ?></a></li>
    </ul>

    <div class="clear_blog"></div>

    <?php

    if((isset($_GET['id'])) && (is_numeric($_GET['id']))) {

	$id = mysql_real_escape_string($_GET['id']);
	$id = intval($_GET['id']);

		}else{

		echo '<p class="false">' . $lang['invalid_id'] . '!</p>';
		}

    $query = "DELETE FROM badwords WHERE badword_id = '" . $id . "'";
    $result = mysql_query($query) OR die(mysql_error());

    if($result) {

    echo '<p class="success">' . $lang['success_delete_word'] . '!</p>
    <p><a href="badwords.php">' . $lang['go_on'] . '</a></p>';

    	}else{
    
    	echo '<p class="false">' . $lang['failed_delete_word'] . '</p>
        <p><a href="badwords.php">' . $lang['back'] . '</a></p>';
    	}

    ?>

<?php require('management/admin_layout/footer.php'); ?>
Return current item: WH Board