note 18481 added to control-structures.alternative-syntax
| From: | frank at vista dot com | Date: | Thu, 24 Jan 2002 19:26:58 +0000 |
| Subject: | note 18481 added to control-structures.alternative-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25784@lists.php.net to get a copy of this message | ||
The alternative syntax is useful for situations where other systems would use templates:
OCIDefineByName($stmt, 'NAME', &$name);
OCIDefineByName($stmt, 'SALARY', &$salary);
OCIExecute($stmt);
?>
<!-- later, maybe in an included file -->
<table>
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<? while(OCIFetch($stmt)): ?>
<tr>
<td><? echo $name ?></td>
<td><? echo $salary ?></td>
</tr>
<? endwhile; ?>
</table>
--
http://www.php.net/manual/en/control-structures.alternative-syntax.php
http://master.php.net/manage/user-notes.php?action=edit+18481
http://master.php.net/manage/user-notes.php?action=delete+18481
http://master.php.net/manage/user-notes.php?action=reject+18481