Parašė kiskiss· 2008 Sau. 8 16:01:31
#1
//=================================================
$sql = "SELECT * FROM `" . $PREFIXAS . "pages` WHERE pages_id = '$actual_page_id' LIMIT 1";
$result = mysql_query($sql);
if (mysql_num_rows($result) == "0") { include 'klaida.php'; }
else {
//================================================
// Turinys
//================================================
$row = mysql_fetch_array($result);
$page_content = ($row[pages_type] == PAGE_BBCODE) ? bbcode($row[pages_content]) : $row[pages_content];
$page->setTemplateVar("PageTitle", $row['pages_title']);
$page->setTemplateVar("PageContent", $page_content);
}
//================================================
Šitame scripte išvedamas 1 rezultatas, kaip padaryti kad išvestu visus? Visaip meginau redaguot bet nepavyksta. Ir išvis mano manymu klaida ne čia o kituose failuose
Redagavo kiskiss· 2008 Sau. 8 16:01:53