Verfasst: 11.12.2006 18:54
Na die Auswertungsgeschichte kannst Du radikal kürzen.... Und was bekommst Du nicht zu sehen?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$sql = "SELECT * FROM " . TOPICS_TABLE . " WHERE forum_id = 22 AND (topic_calendar_time - NOW() > 0) ORDER BY topic_calendar_time ASC LIMIT 0 , 5";
if( !( $result = $db->sql_query($sql) ) )
{
message_die(CRITICAL_ERROR, 'Kann Themen Informationen nicht laden!', '', __LINE__, __FILE__, $sql);
}
$abfrage = array();
while ( $row = $db->sql_fetchrow($result) ){
//Werte zuordnen
$template->set_filenames(array(
'body' => 'calnext.tpl'
));
$titel = $row['topic_title'];
$datum = date("d.m.Y",$row['topic_calendar_time']);
for($i=1; $i<=5; $i++) {
$template->assign_block_vars('zahlen', array(
'T_TITLE' => $titel,
'DATE' => $datum
));
}}
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Alles auswählen
Template->loadfile(): No files found for handle body
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
$sql = "SELECT * FROM " . TOPICS_TABLE . "
WHERE forum_id = 22 AND (topic_calendar_time - NOW() > 0)
ORDER BY topic_calendar_time ASC
LIMIT 0 , 5";
if( !( $result = $db->sql_query($sql) ) )
{
message_die(CRITICAL_ERROR, 'Kann Themen Informationen nicht laden!', '', __LINE__, __FILE__, $sql);
}
// Generate page
//
//
// Generate page
//
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'calnext.tpl')
);
$i = 0;
while ( $row = $db->sql_fetchrow($result) )
{
$template->assign_block_vars('zahlen', array(
'T_TITLE' => $row['topic_title'],
'DATE' => date("d.m.Y", $row['topic_calendar_time'])
));
$i++;
}
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Alles auswählen
<table>
<!-- BEGIN zahlen -->
<tr><td>Titel:</td><td>{zahlen.T_TITLE}</td></tr>
<tr><td>Datum:</td><td>{zahlen.DATE}</td></tr>
<!-- END zahlen -->
</table>
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// Start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
// End session management
$sql = "SELECT * FROM " . TOPICS_TABLE . "
WHERE forum_id = 22 AND (topic_calendar_time - UNIX_TIMESTAMP() > 0)
ORDER BY topic_calendar_time ASC
LIMIT 0 , 5";
if( !( $result = $db->sql_query($sql) ) )
{
message_die(CRITICAL_ERROR, 'Kann Themen Informationen nicht laden!', '', __LINE__, __FILE__, $sql);
}
// Generate page
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'calnext.tpl')
);
while ( $row = $db->sql_fetchrow($result) )
{
$template->assign_block_vars('zahlen', array(
'T_TITLE' => $row['topic_title'],
'DATE' => date("d.m.Y", $row['topic_calendar_time'])
));
}
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Alles auswählen
AND (topic_calendar_time - UNIX_TIMESTAMP() > 0)
Code: Alles auswählen
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'calnext.tpl')
);
$i = 0;
while ( $row = $db->sql_fetchrow($result) )
{
$template->assign_block_vars('zahlen', array(
'T_TITLE' => $userdata,
'DATE' => date("d.m.Y", $row['topic_calendar_time'])
));
$i++;
}
$template->assign_block_vars('zahlen', array( //////von mir
'T_TITLE' => test,)); ////von mir
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
Code: Alles auswählen
SELECT DISTINCT NOW( ) FROM phpbb_users;
Code: Alles auswählen
SELECT DISTINCT UNIX_TIMESTAMP( ) FROM phpbb_users;
Code: Alles auswählen
SELECT * FROM phpbb_topics WHERE forum_id = 22 AND (topic_calendar_time - UNIX_TIMESTAMP() > 0) ORDER BY topic_calendar_time ASC;
Code: Alles auswählen
// End session management
//
$sql = SELECT * FROM phpbb_topics
WHERE forum_id = 22 AND (topic_calendar_time - UNIX_TIMESTAMP() > 0)
ORDER BY topic_calendar_time ASC;
if( !( $result = $db->sql_query($sql) ) )