In Dreamtime, we'd just have a template that looks like this:

<table>
{:each:output}
  <tr>
     <td>{output}</td><td>{more_output}</td>
  </tr>
  {:next:more_output}
{:end}
</table>

Even a pot-smoking mac-using hippie web designer can understand that. :-)
And it's readable in Dreamweaver or GoLive or any of those visual HTML
tools.  For Dreamweaver I added a little custom definition that makes a nice
icon wherever it sees a template tag in the HTML file.

...and our PHP geeks just stuff a results array into the template.  Too
easy.

- Tim
  http://www.phptemplates.org

> <TABLE>
> <?
> while (fetch_row_from_query()){
>    $output = data_from_fetched_row();
>    $more_output = more_data_from_fetched_row();?>
>    <TR>
>       <TD><?echo $output?></TD>
>       <TD><?echo $more_output?></TD>
>    </TR>
> <?}?>
> </TABLE>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to