Re: Is this possible?
| From: | Julio Nobrega Trabalhando | Date: | Wed, 06 Feb 2002 19:57:03 +0000 |
| Subject: | Re: Is this possible? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83747@lists.php.net to get a copy of this message | ||
I am sorry, this has nothing to do with the logic of your code, but
instead with style (and a little bit of perfomance, both from you and your
system).
Isn't easier to escape PHP when you are going to enter html code lines?
Like this:
<?php
if ($myrow = mysql_fetch_array($varetabell) AND $myro =
mysql_fetch_array($varetab)) {
echo "<TABLE border=\"0\" width=\"450\">\n";
echo " <tr>\n";
?>
IMHO would be better:
<?php
if ($myrow = mysql_fetch_array($varetabell) AND $myro =
mysql_fetch_array($varetab)) {
?>
<TABLE border="0" width="450">
<tr>
<td width="300" colspan="2"><b><font
<?php
}
?>
Seems to be easier to type, prettier and faster....
Just a tought ;-)
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca