Sorry, but I could not do
New template "tel_bit"
PHP Code:
<tr class="$bgclass"><td>$tel_list_al[telefon_sahibi_adi] $tel_list_al[telefon_sahibi_soyadi]</td></tr>
<tr class="$bgclass"><td>$tel_list_al[cep_tel_kodu] $tel_list_al[cep_tel_numara]</td></tr>
<tr class="$bgclass"><td>$tel_list_al[ev_tel_kodu] $tel_list_al[ev_tel_numara]</td></tr>
<tr class="$bgclass"><td>$tel_list_al[is_tel_kodu] $tel_list_al[is_tel_numara]</td></tr>
<tr class="$bgclass"><td>$tel_list_al[aciklama]</td></tr>
<tr class="$bgclass"><td>$tel_list_al[kullanici_adi]</td></tr>
php liles
PHP Code:
$sorgula= mysql_query("SELECT * FROM telefon_listesi");
while($tel_list_al=mysql_fetch_object($sorgula))
{
eval('$satirlar .= "' . fetch_template('tel_bit') . '";');
}
Base template "telefon_rehberi"
PHP Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Telefon Rehberi</td>
</tr>
<tr>
<td width="16%" class="thead">Adı Soyadı</td>
<td width="13%" class="thead">Cep Telefon</td>
<td width="13%" class="thead">Ev Telefon</td>
<td width="13%" class="thead">İş Telefon</td>
<td width="27%" class="thead">A?ıklama</td>
<td width="16%" class="thead">Ekleyen</td>
</tr>
$satirlar
</table>
<br />
$footer
</body>
</html>
Error this:
Fatal error: Cannot use object of type stdClass as array in
*******\telefon_rehberi.php(394) : eval()'d code on line
1
394 line -> eval('$satirlar .= "' . fetch_template('tel_bit') . '";');
Where am I wrong?