PHP-Code:
if ($todo == "anbieter") {
echo tmpl('templates/partner/anbieterteil1.temp');
$m_res = mysql_query("SELECT url, partner, pay, betrag, beschreibung FROM $table03");
while ($m_rows = mysql_fetch_array($m_res) or die(mysql_error())) {
if ($m_rows[partner] == "0") {
echo "Es sind momentan leider keine Programme vorhanden";
echo tmpl('templates/partner/anbieterteil3.temp');
echo load_footer('partner');
exit();
}
if ($m_rows[pay] == "1") $m_rows[pay] = "%";
elseif ($m_rows[pay] == "2") $m_rows[pay] = "Euro";
else {
$m_rows[pay] = "gratis";
$m_rows[betrag] = "";
}
echo tmpl('templates/partner/anbietertable.temp', array('{url}' => $m_rows[url], '{anbieter}' => $m_rows[partner], '{betrag}' => $m_rows[betrag], '{pay}' => $m_rows[pay], '{text}' => $m_rows[beschreibung]));
}
echo tmpl('templates/partner/anbieterteil3.temp');
echo "test";
}
echo load_footer('partner');
?>
PHP-Code:
<div align="center">
<center>
<table border="0" width="50%">
PHP-Code:
<tr>
<td width="100%"><font face="Arial" size="2"><a href="{url}">{anbieter}</a> - <b>{betrag}{pay}</b></font></td>
</tr>
<tr>
<td width="100%"><font face="Arial" size="2">{text}</font></td>
</tr>
PHP-Code:
test
</table>
</center>
</div>
woran liegt das?
Kommentar