[ Nesha_bg @ 30.11.2006. 09:06 ] @
Ovako instalirao sam jedan modul u php nuke. Ok sve radi. Ali imam bazu podataka koju kad ubacujem preko php my admin izbacuje mi gresku sledeceg tipa: Citat: Greška Izgleda da postoji greška u vašem SQL upitu. Ovde je poruka o greški MySQL servera, koja vam može pomoći u otkrivanju problema ERROR: Nepoznat string interpunkcije @ 1 STR: <? SQL: <?php /************************************************************************/ /* PHP-NUKE: Advanced Content Management System */ /* ============================================ */ /* */ /* Video Stream Module for PHP-Nuke with many features */ /* */ /* Copyright (c) 2006 by Scott Cariss (Brady) */ /* http://www.steezmatic-designs.com */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /************************************************************************/ // enabling correct error reporting error_reporting(E_ALL ^ E_NOTICE); SQL upit: MySQL reče: Dokumentacija #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php // enabling correct error reporting error_repo' at line 1 ako vam treba taj fajl da posaljem javite.... Glavu sam obio resavajuci ovaj problem... hvala svima ovako izgleda orginalni php fajl: Citat: <?php /************************************************************************/ /* PHP-NUKE: Advanced Content Management System */ /* ============================================ */ /* */ /* Video Stream Module for PHP-Nuke with many features */ /* */ /* Copyright (c) 2006 by Scott Cariss (Brady) */ /* http://www.steezmatic-designs.com */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /************************************************************************/ // enabling correct error reporting error_reporting(E_ALL ^ E_NOTICE); ini_set("error_reporting", E_ALL ^ E_NOTICE); ini_set("display_errors", 1); require_once("mainfile.php"); global $admin, $prefix, $db; if (!is_array($admin)) { $admin2 = base64_decode($admin); $admin2 = explode(":", $admin2); $aid = "$admin2[0]"; } else { $aid = "$admin[0]"; } $index = 1; $sql = "SELECT radminsuper FROM ".$prefix."_authors WHERE aid='$aid'"; $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); if ($row['radminsuper'] == 1) { include('install/selectinstall.php'); } else { include('install/notadmin.php'); } ?> ako neko zna gde je greska bio bih mu vecno zahvalan |