|
#1
|
|||
|
|||
Show/Hide News Don't Work
Hello again BL users! I have pretty small problem but I can't solve it. I don't use block system and I have news in my index.php with "Show/Hide" buttons but they don't work. My friend has got same source, only few files are different but this mod works for him. Here's my index.php:
[code]<? require "include/bittorrent.php"; dbconn(false); loggedinorreturn(); if ($_SERVER["REQUEST_METHOD"] == "POST") { $choice = $_POST["choice"]; if ($CURUSER && $choice != "" && $choice < 256 && $choice == floor($choice)) { $res = mysql_query("SELECT * FROM polls ORDER BY added DESC LIMIT 1") or sqlerr(__FILE__, __LINE__); $arr = mysql_fetch_assoc($res) or die("Nav jautājuma"); $pollid = $arr["id"]; $userid = $CURUSER["id"]; $res = mysql_query("SELECT * FROM pollanswers WHERE pollid=$pollid && userid=$userid") or sqlerr(__FILE__, __LINE__); $arr = mysql_fetch_assoc($res); if ($arr) die(" |
#2
|
|||
|
|||
Have you remembered to add this in headeren
PHP Code:
__________________
You think you know me? Well, find out, ask me |
#3
|
|||
|
|||
I had it but i had "ja/java_klappe.js" but I needed "js/java_klappe.js"
My fault! |
Tags |
news , show or hide , work |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show/Hide Sample in details.php problem | lovebeer | TBDev | 2 | 7th March 2010 21:21 |
PM does not work | torrentfreak | Torrent Strike | 1 | 20th January 2010 21:03 |
Hide profile | PuterDude | Torrent Strike | 6 | 6th October 2008 15:58 |
the [img][/img] tag doesn't work? | roland1000 | TBDev | 4 | 23rd July 2008 22:43 |