better way ...
PHP:<?php
print '<tr>
<td>
<div align="center"><font face="Verdana" size="1">' .$name. </font></div>
</td>
..................
?>
___________________
Last edited by tbi, August 25th, 2003 03:50 PM (Edited 1 times)
Login |
Retarded CodeRetarded CodeCurrently viewing this thread: 1 (0 members and 1 guests) tbiStatus: Offline!
better way ...
___________________ Last edited by tbi, August 25th, 2003 03:50 PM (Edited 1 times) tbi's is faster. if your using echo use , not . ___________________ http://www.philbrodeur.com - Expert PHP Development and Tutorials designz: <font face'Verdana'> isnt good html, <font face="Verdana"> is learn how to code html :/ and when outputting a long string of html, its faster to exit php (?>), output the code (with <?php echo $var;?> to echo the vars) and then reenter php (<?php) ___________________ Jeremie - Used to be the Director of Community Development AdamStatus: Offline!
or if you have short tags avaiable <?=$Var?> ___________________
i never use short tags only <?php should exists ! ___________________ Jeremie - Used to be the Director of Community Development AdamStatus: Offline!
tag teamed =colgate ___________________
lol, I know how to code html, I was on about doing it inside PHP tags rather than out side I find it a lot easier to put
Instead of using the following..
I find the last one hard to remember most times lol .. so i use ' easier and outputs same results.. Many attempts at my scripts with html inside of php use the ' instead of \" Some ppl find one way good and others different .. If the output is the same, who cares.. lol Phil ___________________ FreeLance WebDeveloper why dont you just do use single quotes for php strings and double quotes for html attributes.. only double quotes are valid in html, even if somes browsers treats single ones as double ones, its not EVERY browsers that do so ___________________ Jeremie - Used to be the Director of Community Development Re: Retarded Code
this is the easiest way to do it -- no worries about escaping or anything. variables are parsed, " is usable without escapes, as are '
why did you put the content into a variable before immediately printing it? ___________________ http://celerondude.com |
Copyright ©1999-2009 Neverside. All rights reserved.
Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach
NeverAPI generated this page in 0.0106 seconds.