echo html tags
Moderator: General Moderators
echo html tags
Re: echo html tags
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useRee wrote:is it generally a good idea to echo html tags or is it better to use them normally (echo '<tr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
&amuse them normally (echo '<tr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class=\"e;class\"e;>....</span>';I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
&atr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
"Ree"]is it generally a good idea to echo html tags or is it better to use them normally (echo '<tr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class=\"e;class\"e;>....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>
[/php"Ree"]is it generally a good idea to echo html tags or is it better to use them normally (echo '<tr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>So I think it depends on the context used. use them normally (echo '<tr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<o '<tr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class=\&aho html tags or is it better to use them normally (echo '<tr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
ds on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>// rest - mysql_close etc
?>
So I think it depends on the context used. a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
&your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_clo]
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>
[/php tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>I think it depends on what you want to echo. If I'm echo-ing a few lines, I use
Code: Select all
echo '<span class="class">....</span>';Code: Select all
&ed to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
&amhings a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome.[/quote]
I think it depends on what you want to echo. If I'm echo-ing a few lines, I useCode: Select all
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_clos
echo '<span class="class">....</span>';Code: Select all
<?php
// query etc
?>
<table>
...
</table>
<?php
// rest - mysql_close etc
?>