Jak w temacie jak wziać dane z bazy w phpnuke?
Zrobiłem tak:
<?php
if (!eregi(\"modules.php\", $PHP_SELF)) { die (\"You can't access this file directly...\");
}
require_once(\"mainfile.php\");
include(\"header.php\");
$index = 0;
OpenTable();
{
$zapytanie = sql_query(\"SELECT * FROM baza\");
{
$id = $res11['id'];
echo(\"$id <br />\"); }
}
CloseTable();
include(\"footer.php\");
?>
Ale nie działa ma ktso jakis pomysl?
Juz wiem robie sie to tak:
<?php
if (!eregi(\"modules.php\", $PHP_SELF)) { die (\"You can't access this file directly...\");
}
require_once(\"mainfile.php\");
include(\"header.php\");
$index = 0;
OpenTable();
{
$pytanie = $db->sql_query(\"SELECT * FROM cos\");
{
$id = $rekord['id'];
echo(\"$id <br />\"); }
}
CloseTable();
include(\"footer.php\");
?>
Ten post edytował wozniak 22.02.2005, 15:31:16