PHP: Making things look pretty.

liunx

Guest
Is there a way to put the contents of php code, into tables without having to echo every single HTML tag?try using classes (<!-- m --><a class="postlink" href="http://www.phpbuilder.com/columns/rod19990601.php3">http://www.phpbuilder.com/columns/rod19990601.php3</a><!-- m -->)

read through that articleclasses won't help. all he asked for was to put php code in html so tha the is not echoing all the html out at once.

you can do this in a php page.

<td><?php echo "this is php";?></td>

the only part that is echoed is the php. the rest is regular html.and is you want to echo a variable

<?=$var?> you don't the <?php echo"";?> for those! ;)well true, you just used shortcuts. and by php standard you should be putting <?php there.

= equal echo

just so you know. :)blah, i was thinking of something else. my bad
 
Back
Top