Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Pomoc... Instalirao sam jedan modul u php nuke, ali sql zeza...

[es] :: Web aplikacije :: Pomoc... Instalirao sam jedan modul u php nuke, ali sql zeza...

[ Pregleda: 2355 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Nesha_bg
c:\Beograd\Sremcica

Član broj: 44776
Poruke: 118
212.200.223.*

ICQ: 193210132
Sajt: www.srecnanova.com


Profil

icon Pomoc... Instalirao sam jedan modul u php nuke, ali sql zeza...30.11.2006. u 09:06 - pre 212 meseci
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
Sremcica bez ZICA
 
Odgovor na temu

misk0
.: Lugano :. _.: CH :.

SuperModerator
Član broj: 634
Poruke: 2824
*.adsl.ticino.com.

ICQ: 46802502


+49 Profil

icon Re: Pomoc... Instalirao sam jedan modul u php nuke, ali sql zeza...09.12.2006. u 22:53 - pre 212 meseci
ovo nema veze sa mySQL-om. Meni djeluje da ti pokusavas
Citat:

#1064 - You have ........ use near '<?php


da posaljes mySQL bazi php kod a to vec ne ide....


:: Nemoj se svadjati sa budalom, ljudi cesto nece primjetiti razliku ::
 
Odgovor na temu

[es] :: Web aplikacije :: Pomoc... Instalirao sam jedan modul u php nuke, ali sql zeza...

[ Pregleda: 2355 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.