Re: Embedding HTML Within a PHP Statement [message #176005 is a reply to message #176003] |
Mon, 14 November 2011 20:22 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 11/14/2011 2:41 PM, Balazs Nadasdi wrote:
> <table>
> <tbody>
> <?php foreach ($someDBResult as $oneRow): ?>
> <tr>
> <td>
> <?php echo $oneRow["firstName"]; ?>
> </td>
> <td>
> <?php echo $oneRow["initials"]; ?>
> </td>
> </tr>
> <?php endforeach; ?>
> </tbody>
> </table>
>
> Is it ok? ^_^
Yes, that is much preferable.
BTW - it's considered good form to copy the relevant portions of the
message you are replying to (as I did here). That way people don't have
to search to find out what you're replying to (which may or may not
exist on their server).
Not everyone uses google groups to access usenet - in fact I would
suspect the vast majority of regulars here (and in many newsgroups) use
a real newsreader. It's much better.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|