Autor Zpráva
Jopkoman
Profil *
$res = mysql_query("SELECT * FROM".$prefix."_members", $dbi)


mam v tom daku chybu ale netusim aku :/// napise mi iba: Query execution failed
Mingan
Profil
$res = mysql_query("SELECT * FROM ".$prefix."_members", $dbi)
Za FROM by měla být mezera, ne?

Takhle to bude "SELECT * FROMprefix_members..."
Jopkoman
Profil *
ano bola tam medzera $res = mysql_query("SELECT * FROM ".$prefix."_members", $dbi)


ked som to dal tak ako si napisal "SELECT * FROMprefix_members..." tak to pise to iste co predtym :/
Mingan
Profil
A není to uvnitř funkce, kde $dbi je globální proměnná a není tudíž definovaná pro funkci?
Jopkoman
Profil *
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$pagetitle="Roster";
$index = 1;

function index() {
global $dbi;
include("header.php");


$res = mysql_query("SELECT * FROMprefix_members", $dbi)
or die ("Query execution failed");
OpenTable();
echo "<center>
<table.........(nepodstatne tabulky)




toto je cely kod
jozob
Profil
Skús nahradiť tento kód:
$res = mysql_query("SELECT * FROM prefix_members", $dbi)
or die ("Query execution failed");


kódom:
$res = mysql_query("SELECT * FROM prefix_members", $dbi);
echo mysql_errno().": ".mysql_error();


Akú hlášku dostaneš?
Jopkoman
Profil *
ok, uz je to v poriadku, funguje to :) dikes
Toto téma je uzamčeno. Odpověď nelze zaslat.

0