View Single Post
  #7  
Old 25th June 2015, 18:34
I_lie_and_steal_code_and_call_it_mine I_lie_and_steal_code_and_call_it_mine is offline
I have no idea how to code
 
Join Date: Jun 2015
Posts: 9
Thumbs up
PHP Code:
<?
to

PHP Code:
<?php
At top of all php files


would be a good start too


would be

PHP Code:
<?php
require_once("backend/functions.php");
dbconn(true);
loggedinonly();

$delid = (int)$_GET['bookmarkid'];

$res2 mysql_query ("SELECT id, userid FROM bookmarks WHERE torrentid = $delid AND userid = $CURUSER[id]") or die();

$arr mysql_fetch_assoc($res2);
if (!
$arr)
show_error_msg("Error!","ID not found in your bookmarks list...",1);

mysql_query ("DELETE FROM bookmarks WHERE torrentid = $delid AND userid = $CURUSER[id]") or die();
header("Refresh: 0;url=".$_SERVER['HTTP_REFERER']);
?>
Reply With Quote