0) show_error_msg("Error","Already bookmarked torrent",1); if ((get_row_count("torrents", "WHERE id = $gottorrent")) > 0) { mysql_query("INSERT INTO bookmarks (userid, torrentid) VALUES ($CURUSER[id], $gottorrent)") or die(mysql_error()); stdhead("Bookmarks"); begin_frame ("Successfully"); echo "Torrent bookmarked"; echo "
Back To Torrent"; end_frame(); stdfoot(); } else show_error_msg("Error","ID not found",1); ?>