I have a couple pages that have tables, whats best use echo to produce the
full table with the variables or is it best to just make the table in plain
html and use <?php echo ('$va'l); ?> when i need to see some value.
Example i have tables like this
echo '<div align="',$align ,'"><table border="0" cellpadding="2"
cellspacing="0" width="',$large ur,'">';
echo '<tr><td bgcolor="',$tit re_bgcolor,'">< font face="',$titre_ face,'"
size="',$titre_ size,'" color="',$titre _color,'">  ;Messages
</font></td>';
echo '<td height="24" bgcolor="',$tit re_bgcolor,'">< font
face="',$titre_ face,'" size="',$titre_ size,'"
color="',$titre _color,'">  ;Author :</font></td>';
echo '<td bgcolor="',$tit re_bgcolor,'">< font face="',$titre_ face,'"
size="',$titre_ size,'" color="',$titre _color,'">Posts :</font></td>';
echo '<td bgcolor="',$tit re_bgcolor,'" width="140"><fo nt
face="',$titre_ face,'" size="',$titre_ size,'" color="',$titre _color,'">Last
post :</font></td></tr>';
but sometimes i just leave the php like this ?> my table here and i use
<?php echo ('$val'); ?> when i need it.
Both seem to be prety much the same thing to me, i just dont want to waste
processing power with such things even if in both cases it doesnt take that
much time to load the page.
full table with the variables or is it best to just make the table in plain
html and use <?php echo ('$va'l); ?> when i need to see some value.
Example i have tables like this
echo '<div align="',$align ,'"><table border="0" cellpadding="2"
cellspacing="0" width="',$large ur,'">';
echo '<tr><td bgcolor="',$tit re_bgcolor,'">< font face="',$titre_ face,'"
size="',$titre_ size,'" color="',$titre _color,'">  ;Messages
</font></td>';
echo '<td height="24" bgcolor="',$tit re_bgcolor,'">< font
face="',$titre_ face,'" size="',$titre_ size,'"
color="',$titre _color,'">  ;Author :</font></td>';
echo '<td bgcolor="',$tit re_bgcolor,'">< font face="',$titre_ face,'"
size="',$titre_ size,'" color="',$titre _color,'">Posts :</font></td>';
echo '<td bgcolor="',$tit re_bgcolor,'" width="140"><fo nt
face="',$titre_ face,'" size="',$titre_ size,'" color="',$titre _color,'">Last
post :</font></td></tr>';
but sometimes i just leave the php like this ?> my table here and i use
<?php echo ('$val'); ?> when i need it.
Both seem to be prety much the same thing to me, i just dont want to waste
processing power with such things even if in both cases it doesnt take that
much time to load the page.
Comment