Location: PHPKode > scripts > WH Social > wh_social/modules/management/delete.inc.php
<?php

    echo '<h1 class="p_space">' . $lang['delete_gb_entry'] . '</h1>';

    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>';
    	exit();
    	}

    $query = "DELETE FROM guestbook WHERE id = '" . $id . "' AND id2 = '" . (int)$_SESSION['id'] . "'";
    $result = mysql_query($query) OR die(mysql_error());

    if($result) {

    echo '<p class="success">' . $lang['success_gb_delete'] . ' - <a href="management.php?site=guestbook" class="success_link">' . $lang['go_on'] . '</a></p>';

    	}else{

    	echo '<p class="false">' . $lang['couldnot_gb_delete'] . ' - <a href="javascript:history.back();" class="false_link">' . $lang['back'] . '</a></p>';
        }

?>
Return current item: WH Social