|
![]() |
#1
|
|||
|
|||
![]()
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 |
|
|