Not Solved PHP in Templates and Template Conditionals
Not Solved
It's a problem with this, if i want to use it:
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead2" style="border-color: #ff6200;">
<strong>Servers</strong>
</td>
</tr>
</thead>
<tbody style="font-size:10px;">
<?php $servs = file_get_contents('http://xxx/asd.php'); echo $servs; ?>
</tbody>
</table>
</tbody>
</table>
And it's asd.php:
<?php ob_start(); include('s.php'); ?>
<tr>
<td class="trow1">Server #1<br />
<span style="color:green;"><?php echo $server; ?></span><br />
<span style="float:left;">Players: <?php echo $players.'/'.$playersmax; ?></span>
<span style="float:right;">Map: <?php echo $map;?></span><br />
<span style="float:left;"><a href="steam://connect/<?php echo $server; ?>">CONNECT</a></span>
<span style="float:right;"><?php echo $st; ?></span></td>
</tr>

It adds smth like this: http://scr.hu/0et9/kcygj . there's a blank area like <br />

This code works brilliant:
<table border="0" cellspacing="1" cellpadding="4" class="tborder" style="margin-top:10px;">
<thead>
<tr>
<td class="thead2" style="border-color: #ff6200;">
<strong>Strony/fora partnerskie</strong></td>
</tr>
</thead>
<tbody style="font-size:10px;">
<tr><td class="trow1">asd</td></tr>
</tbody></table>
screen: http://scr.hu/0et9/ep9ex
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by ratosluaf - 2012-10-15, 05:08 AM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 89 Guest(s)