Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

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

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

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

Postby vedtam » Fri Jun 01, 2012 8:42 am

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!! :)
Last edited by vedtam on Sat Jun 02, 2012 11:31 pm, edited 1 time in total.
vedtam
New php-forum User
New php-forum User
 
Posts: 5
Joined: Fri Jun 01, 2012 8:36 am

Re: Inserting HTML Div into PHP code...please help.

Postby Nullsig » Fri Jun 01, 2012 10:18 am

Code: Select all
<?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>";

?>

User avatar
Nullsig
php-forum Fan User
php-forum Fan User
 
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: Inserting HTML Div into PHP code...please help.

Postby vedtam » Fri Jun 01, 2012 10:27 am

Hi Nullsig,

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


Regards, :)
vedtam
vedtam
New php-forum User
New php-forum User
 
Posts: 5
Joined: Fri Jun 01, 2012 8:36 am

Re: Inserting HTML Div into PHP code...please help.

Postby vedtam » Fri Jun 01, 2012 11:25 pm

Hi,

I still got the error messages...:(

Image


Bellow is the whole code:

Code: Select all
<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');





?>





vedtam
New php-forum User
New php-forum User
 
Posts: 5
Joined: Fri Jun 01, 2012 8:36 am

Re: Inserting HTML Div into PHP code...please help.

Postby vedtam » Sat Jun 02, 2012 10:56 pm

Anyone?? :(
vedtam
New php-forum User
New php-forum User
 
Posts: 5
Joined: Fri Jun 01, 2012 8:36 am

Re: Inserting HTML Div into PHP code...please help.

Postby vedtam » Sat Jun 02, 2012 11:30 pm

Thanks, I have arranged it...:D
vedtam
New php-forum User
New php-forum User
 
Posts: 5
Joined: Fri Jun 01, 2012 8:36 am

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

Postby Nullsig » Mon Jun 04, 2012 4:22 am

Sorry for the delay. I don't browse the forums on the weekend.
User avatar
Nullsig
php-forum Fan User
php-forum Fan User
 
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.