list()
Пример 1.
list()
<table>
<tr>
<th>Employee name</th>
<th>Salary</th>
</tr>
<?php$result = mysql($conn, "SELECT id, name, salary FROM employees");
while (list($id, $name, $salary) = mysql_fetch_row($result)) {
print(" <tr>\n".
" <td><a href=\"info.php3?id=$id\">$name</a></td>\n".
" <td>$salary</td>\n".
" </tr>\n");
}?></table>
См. также:each(),array().
Содержание раздела