K
kinghh
Bekanntes Mitglied
- Dabei seit
- 15.03.2007
- Beiträge
- 116
- Reaktionspunkte
- 0
Hallo Leute,
Bin grad am Php lernen und hab schon die ersten Probleme, also möchte eine Html Tabelle in einer Variable abspeichern. Funktionert aber leider nicht richtig.
Also:
<?php
$name = '<html> <head> <body> <table width="635" cellpadding="0" cellspacing="0" class="tabitem"><tr><td width="11%" align="center" valign="top" class="mediancells"><img src="images/thumb_example3.gif" alt="thumb" class="thumbimage"><br><a href="#"><span class="style8">Service A</span></a></td><td width="10%" class="style5"><font color ="red"> <h2>10€</h2> </b><br></td><td width="22%" align="left" valign="top" class="style6">Lorem ipsum dolor sit velit non augue. Aliquam nec diam at mi gravida convallis. Iconsectetuer efsto adipiscing elit. Non Augue sit velit non.</td><td width="10%" align="center" class="mediancells"><img src="images/check.gif" alt="check" width="35" height="35"></td><td width="16%" align="center" class="mediancells"><img src="images/star.gif" alt="star" width="15" height="14"><img src="images/star.gif" alt="star" width="15" height="14"><img src="images/star.gif" alt="star" width="15" height="14"><img src="images/star.gif" alt="star" width="15" height="14"><img src="images/star.gif" alt="star" width="15" height="14"><br><span class="style4">5/5</span></td><td width="23%" align="center"><a href="#"><img src="images/button.gif" alt="button" width="129" height="58" class="imgnoborder" style="border:0px;"></a></td></tr></table><br></head></body></html>';
echo $name ;
?>
Kann man das nicht einfach so in einer Variable speichern?
Es klappt bei mir nicht. Es wird zwar die Table angezeigt aber auch das "echo $name;?>" auf dem Bildschrim,also es wird nicht in die Varibale gespeichert sondern einfach angezeigt.
Kann man vill. nicht so viel in einer Varibale speichern?
Oder was hab ich übersehen.
MfG
Bin grad am Php lernen und hab schon die ersten Probleme, also möchte eine Html Tabelle in einer Variable abspeichern. Funktionert aber leider nicht richtig.
Also:
<?php
$name = '<html> <head> <body> <table width="635" cellpadding="0" cellspacing="0" class="tabitem"><tr><td width="11%" align="center" valign="top" class="mediancells"><img src="images/thumb_example3.gif" alt="thumb" class="thumbimage"><br><a href="#"><span class="style8">Service A</span></a></td><td width="10%" class="style5"><font color ="red"> <h2>10€</h2> </b><br></td><td width="22%" align="left" valign="top" class="style6">Lorem ipsum dolor sit velit non augue. Aliquam nec diam at mi gravida convallis. Iconsectetuer efsto adipiscing elit. Non Augue sit velit non.</td><td width="10%" align="center" class="mediancells"><img src="images/check.gif" alt="check" width="35" height="35"></td><td width="16%" align="center" class="mediancells"><img src="images/star.gif" alt="star" width="15" height="14"><img src="images/star.gif" alt="star" width="15" height="14"><img src="images/star.gif" alt="star" width="15" height="14"><img src="images/star.gif" alt="star" width="15" height="14"><img src="images/star.gif" alt="star" width="15" height="14"><br><span class="style4">5/5</span></td><td width="23%" align="center"><a href="#"><img src="images/button.gif" alt="button" width="129" height="58" class="imgnoborder" style="border:0px;"></a></td></tr></table><br></head></body></html>';
echo $name ;
?>
Kann man das nicht einfach so in einer Variable speichern?
Es klappt bei mir nicht. Es wird zwar die Table angezeigt aber auch das "echo $name;?>" auf dem Bildschrim,also es wird nicht in die Varibale gespeichert sondern einfach angezeigt.
Kann man vill. nicht so viel in einer Varibale speichern?
Oder was hab ich übersehen.
MfG