RE: While and echoing HTML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> I guess it is the missing semicolon.
> 
> 
> And you can write:
> 
> echo "<tr><td><? echo $product_type ?></td></tr>"
> 
> as simply
> 
> echo "<tr><td>$product_type</td></tr>"
> 

I prefer 

echo '<tr><td>', $product_type, '</td></tr>';

No string concatenation, or variable replacement required.

Jared

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux