einstein-511
Ich denke die Fehlermeldung spricht für sich:
| Zitat: |
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\X\xampp\htdocs\projekt360\portal.php(1
: eval()'d code on line 25
Hier kommt später der Footer hin
|
Und hier der PHP Code:
| php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
|
<?php
$filename = 'portal.php';
require('./global.php');
$cgames = $db->unbuffered_query('SELECT Titel, Datum FROM bb'.$n.'_cominggames');
while ($cgame = $db->fetch_array($cgames)) {
}
eval("\$tpl->output(\"".$tpl->get("gameportal")."\");");
eval("\$tpl->output(\"".$tpl->get("gameportal_footer")."\");");
?>
|
|
Also das 2te Template gibt er ja ohne Probleme aus nur das erste nicht weiß da vlt einer ne Lösun. Wäre sehr Dankebar
DAnke im Vorraus Einstein
Master-X
Du müsstest schon das Template mit Anhängen, das in der Zeile 18 aufgerufen wird.
einstein-511
Hier mal das Template:
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | MGP</title>
$headinclude
</head>
<body>
$header
<table align="center" style="width:98%" cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder">
<tr>
<th class="tablea" scope="row"><span class="smallfont"><b><DIV ALIGN=left><a href="index.php{$SID_ARG_1ST}">$master_board_name</a> » MGP</DIV></b></span></th>
</tr>
</table>
<br>
<br>
<br>
<table align="left" style="width:15%" cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder">
<tr>
<th class="tabletitle" scope="row"><small><b> Kommende GAMES </b> </small></th>
</tr>
<tr>
<th class="tableb" scope="row"><span class="normalfont">$row['Datum'] $row['Titel']</span></th>
</tr>
</table>
<p> </p>
<p>$gameportal_footer
$footer
</p>
</body>
Master-X
Probiere mal diese und gewöhne dir am besten an, solche Sachen mit dem "Code"-Tag zu posten.
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
|
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | MGP</title>
$headinclude
</head>
<body>
$header
<table align="center" style="width:98%" cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder">
<tr>
<th class="tablea" scope="row"><span class="smallfont"><b><DIV ALIGN=left><a href="index.php{$SID_ARG_1ST}">$master_board_name</a> » MGP</DIV></b></span></th>
</tr>
</table>
<br>
<br>
<br>
<table align="left" style="width:15%" cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder">
<tr>
<th class="tabletitle" scope="row"><small><b> Kommende GAMES </b> </small></th>
</tr>
<tr>
<th class="tableb" scope="row"><span class="normalfont">$row[Datum] $row[Titel]</span></th>
</tr>
</table>
<p> </p>
<p>$gameportal_footer
$footer
</p>
</body> |
|
einstein-511
Danke für die schnelle Hilfe . WO lag den der Fehler ^^
EDIT: Er gibt die DAtenbank werte nicht aus woran kann das iegen?
EDIT²: Jetzt kommt ein Mysql Fehler: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\X\xampp\htdocs\projekt360\acp\lib\class_db_mysql.php on line 100
einstein-511
Also die Datenbank exestiert ja auch mit Testinhalt aber auslesen tut er die Kategorien in der Tabelle anscheinend net:
Titel
Datum
das soll er natürlich wieder im Template ausgeben. Ich weiß nicht wie ich das umschreiben soll noch?