[SOLVED] Inserting HTML Div into PHP code...please help.

A

Anonymous

Guest
Hi,

Please forgive my noobness, but I have really limited PHP knowledge, but I need some info about inserting HTML into a PHP code. I was searching for a solution but none of them works, and I need a solution quick.

I get a 3 errors, and can't get it to work. How should I incorporate those few lines of HTML right??

This is how it looks now:


-----------------
etc...


$tpl->opis = '

<center>

<table style="background:;">

<tr>

<td>

<?php echo "<div style="margin-left: 206px;" id='coin-slider'>

<a href="#">
<img src='images/slide_1.png' >
</a>

<a href="#">
<img src='images/slide_2.png' >
</a>

</div>";

?>


</td>



</tr>

<tr>

<td align="center" height="45" style="margin-top: 15px;"><img border="0" src="images/buletts.png" ></td>

</tr>

</table>

</center>



<center>

<table id="introtext" style="width: 795px;text-align: justify;font-size:18px;margin-top: -6px;">


...etc

--------------


Regards!! :)
 
Code:
<?php echo "<div style=\"margin-left: 206px;\" id='coin-slider'>

<a href=\"#\">
<img src='images/slide_1.png' >
</a>

<a href=\"#\">
<img src='images/slide_2.png' >
</a>

</div>";

?>
 
Hi Nullsig,

Thank you for your reply, I will try it as soon as I get back to my pc...


Regards, :)
vedtam
 
Hi,

I still got the error messages...:(

php_issue.jpg



Bellow is the whole code:

Code:
<head>
<link href="templates/<?php echo $this->template ?>template.css" rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home</title>

<script type="text/javascript" src="script/jquery-1.4.2.js"></script>
<script type="text/javascript" src="script/coin-slider.min.js"></script>
<link rel="stylesheet" href="script/coin-slider-styles.css" type="text/css" />
<script type="text/javascript">
	$(document).ready(function() {
		$('#coin-slider').coinslider({ width: 843, height: 493, navigation: true, sDelay: 90, spw: 1, sph: 1, effect:'straight', delay: 5000 });
	});
</script>



</head>
<?php




include('./templates/ets.php');



$tpl->nazwa       = 'Wilkomen';

$tpl->opis       = '



<center>



<table style="background:;">

<tr>

<td>

<?php echo "<div style=\"margin-left: 206px;\" id='coin-slider'>

<a href=\"#\">
<img src='images/slide_1.png' >
</a>

<a href=\"#\">
<img src='images/slide_2.png' >
</a>

</div>";

?>

</td>


</tr>

<tr>

<td align="center" height="45" style="margin-top: 15px;"><img border="0" src="images/buletts.png"  ></td>

</tr>

</table>

</center>



<center>

<table id="introtext" style="width: 795px;text-align: justify;font-size:18px;margin-top: -6px;">

<tr>

<td><p></p></td>


</tr>

<tr>

<td height="60"><a href="http://alter-schmiedehof.de/konzept.php"><p style="color:#72501e;font-size:17px;"></p></a></td>

</tr>

</table>

</center>

';



printt($tpl, './templates/index.tpl');





?>
 
Sorry for the delay. I don't browse the forums on the weekend.
 
Back
Top