Hallo !
Ich habe folgendes Problem :
PHP - Code wir nicht umgewandelt, wird sondern wie ein HTML-Teil angezeigt.
Hier:
https://web101.admin.idar3.de/partyflirt/
Der Code:
Und hier habe ich die Variablen bestimmt:
Bestimmt ist da irgendein blöder fehler drin, naja ist ja auch meine erste PHP-Arbeit
Bin für jeden Hinweis dankbar
Gruß
Hp-Ecke
Ich habe folgendes Problem :
PHP - Code wir nicht umgewandelt, wird sondern wie ein HTML-Teil angezeigt.
Hier:
https://web101.admin.idar3.de/partyflirt/
Der Code:
Code:
{strip}
include(..\Interface\info.php);
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="571" align="center">
{if $smarty.session.UserId == ''}
<table width="571" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="module_detail" width="571">
<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">
<tr>
<td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
<td class="module_head" width="494">
{lang mkey='special_offer'}
</td>
</tr>
</table>
<table width="571" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" align="center">
<br />
<table width="571" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td width="174" valign="top" height="196" rowspan="2"><img src="{$image_dir}offerimg.jpg" height="196" width="174" alt="" /></td>
<td width="397" valign="top" height="159" align="center" >
<table width="95%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="100%">
<span class="offer_head">{lang mkey='welcome_to_site'}</span><br /><br />
{lang mkey='offer_text'}
<br /><br />
<img src="{$image_dir}member_icon.jpg" width="19" height="18" border="0" alt="" />
<a href="onlineusers.php">{lang mkey='online_users'} {$online_users_count}</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="397" valign="middle" height="37" align="center" class="module_head">
<span class="text_head1">{lang mkey='dont_stay_alone'}</span>
<a href="signup.php"><span class="text_head1">{lang mkey='join_now_for_free'}</span></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
{/if}
{if $smarty.session.UserId > 0 }
{* Show the statistics since last login *}
<table width="571" border="0" cellpadding="0" cellspacing="0" >
{if $smarty.get.errid != ''}
<tr>
<td width="571">
<span class="errors">{mylang mkey='errormsgs' skey=$smarty.get.errid}</span>
</td>
</tr>
<tr><td> </td></tr>
{/if}
<tr>
<td class="module_detail" width="571">
<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">
<tr>
<td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
<td class="module_head" width="494">
{lang mkey='sincelastlogin_hdr'}
</td>
</tr>
</table>
{if $smarty.session.expired == '1'}
<table width="571" border="0" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" style="height:23px">
<tr>
<td width="6"> </td>
<td width="494">
<span class="subhead"><font class="errors">{lang mkey='expired'}</font>
</span>
</td>
</tr>
</table>
{/if}
<table width="571" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" border="0">
<tr class="oddrow">
<td width="42%">
{lang mkey='current_mship_level'}
</td>
<td width="58%">
{$curlevel}
</td>
</tr>
<tr class="evenrow">
<td width="42%">
{lang mkey='expire_on'}:
</td>
<td width="58%">
{$end_date}
</td>
</tr>
<tr class="oddrow">
<td width="42%">
{lang mkey='expire_in'}:
</td>
<td width="58%">
{$bal_days}
</td>
</tr>
<tr class="evenrow">
<td width="42%">
<a href="mailmessages.php?messages=inbox">
{lang mkey='newmessages'}</a>
</td>
<td width="58%">
{$new_messages}
</td>
</tr>
<tr class="oddrow">
<td width="42%">
<a href="listviewswinks.php?id={$smarty.session.UserId}&act=V"> {lang mkey='profileviewed'}</a>
</td>
<td width="58%">
{$profile_views}
</td>
</tr>
<tr class="evenrow">
<td width="42%">
<a href="listviewswinks.php?id={$smarty.session.UserId}&act=W"> {lang mkey='winks_received'}</a>
</td>
<td width="58%">
{$winks}
</td>
</tr>
<tr class="oddrow">
<td width="42%">
<a href="onlineusers.php">{lang mkey='online_users'}</a>
</td>
<td width="58%">
{$online_users_count}
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
{/if}
{ if $config.show_featured_profiles > 0 && $featured_profiles}
{* This is for showing the Featured Profiles *}
<table width="571" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="module_detail" width="571">
<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">
<tr>
<td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
<td class="module_head" width="494">
{lang mkey='featured_profiles'}
</td>
</tr>
</table>
<table width="571" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" border="0">
{assign var="ccount" value="0"}
{foreach item="item" key=key from=$featured_profiles}
{if $ccount is div by 2}
<tr>
{/if}
<td>{include file="userresultviewsmall.tpl"}</td>
{if $ccount is not div by 2}
</tr>
{/if}
{math equation="$ccount+1" assign="ccount"}
{/foreach}
{if $ccount is not div by 2}
</tr>
{/if}
</table>
</td>
</tr>
</table>
{ /if }Hallo
{if $config.list_newmembers > 0 && $newUsersList }
{* Now show the latest members names *}
<table width="571" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="module_detail" width="571">
<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">Nun
<tr>
<td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
<td class="module_head" width="494">
{lang mkey='newmemberlist'} {*if $smarty.session.lastvisit ne ''} {lang mkey='since_last_login'}{/if*}
</td>
</tr>
</table>
<table width="571" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" border="0">
<tr>
<th>Datum</th>
<th>Veranstaltung</th>
<th>Ort</th>
</tr>
<tr>
<th><?php echo "$datum1"</th>
<th>echo "$veranstaltung1";</th>
<th>echo $ort1;</th>
</tr>
<tr>
<th>echo $datum2;</th>
<th>echo $veranstaltung2;</th>
<th>echo $ort2;</th>
</tr>
<tr>
<th>echo $datum3;</th>
<th>echo $veranstaltung3;</th>
<th>echo $ort3;</th>
</tr>
<tr>
<th>echo $datum4;</th>
<th>echo $veranstaltung4;</th>
<th>echo $ort4;</th>
</tr>
<tr>
<th>echo $datum5;</th>
<th>echo $veranstaltung5;</th>
<th>echo $ort5;</th>
</tr>
<tr>
<th>echo $datum6;</th>
<th>echo $veranstaltung6;</th>
<th>echo $ort6;</th>
</tr>
<tr>
<th>echo $datum7;</th>
<th>echo $veranstaltung7;</th>
<th>echo $ort7;</th>
</tr>
<tr>
<th>echo $datum8;</th>
<th>echo $veranstaltung8;</th>
<th>echo $ort8;</th>
</tr>
<tr>
<th>echo $datum9;</th>
<th>echo $veranstaltung9;</th>
<th>echo $ort9;</th>
</tr>
<tr>
<th>echo $datum10;</th>
<th>echo $veranstaltung10;</th>
<th>echo $ort10;</th>
</tr>
</table>
</td>
</tr>
</table>
<br />
{/if}
{if $config.no_last_new_users > 0 && $users}
{* Now show newest profiles *}
<table width="571" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="module_detail" width="571">
<table width="571" border="0" cellpadding="0" cellspacing="0" style="height:23px">
<tr>
<td width="77"><img src="{$image_dir}blue_window_3_bars.jpg" width="77" height="25" alt="" /></td>
<td class="module_head" width="494">
{lang mkey='newest_profiles'} {*if $smarty.session.lastvisit ne ''} {lang mkey='since_last_login'}{/if*}
</td>
</tr>
</table>
<table width="571" cellpadding="{$config.cellpadding}" cellspacing="{$config.cellspacing}" border="0">
{assign var="ccount" value="0"}
{foreach item=item key=key from=$users}
{if $ccount==0}
<tr>
{/if}
<td>{include file="userresultviewsmall.tpl"}</td>
{if $ccount==1}
</tr>
{/if}
{math equation="$ccount+1" assign="ccount"}
{math equation="$ccount%2" assign="ccount"}
{/foreach}
</table>
</td>
</tr>
</table>
{/if}
<br /><br />
{$banner}
</td>
</tr>
</table>
{/strip}
Und hier habe ich die Variablen bestimmt:
Code:
<?php
1.Block
$datum1 = "27.05.2156"; //Datum
$veranstaltung1 = "Party"; //Veranstaltung
$ort1 = "Dortmund"; //Ort
2.Block
$datum2 = "27.05.2156";
$veranstaltung2 = "27.05.2156";
$ort2 = "27.05.2156";
3.Block
$datum3 = "27.05.2156";
$veranstaltung3 = "27.05.2156";
$ort3 = "27.05.2156";
4.Block
$datum4 = "27.05.2156";
$veranstaltung4 = "27.05.2156";
$ort4 = "27.05.2156";
5.Block
$datum5 = "27.05.2156";
$veranstaltung5 = "27.05.2156";
$ort5 = "27.05.2156";
6.Block
$datum6 = "27.05.2156";
$veranstaltung6 = "27.05.2156";
$ort6 = "27.05.2156";
7.Block
$datum7 = "27.05.2156";
$veranstaltung7 = "27.05.2156";
$ort7 = "27.05.2156";
8.Block
$datum8 = "27.05.2156";
$veranstaltung8 = "27.05.2156";
$ort8 = "27.05.2156";
9.Block
$datum9 = "27.05.2156";
$veranstaltung9 = "27.05.2156";
$ort9 = "27.05.2156";
10.Block
$datum10 = "27.05.2156";
$veranstaltung10 = "27.05.2156";
$ort10 = "27.05.2156";
?>
Bestimmt ist da irgendein blöder fehler drin, naja ist ja auch meine erste PHP-Arbeit
Bin für jeden Hinweis dankbar
Gruß
Hp-Ecke