So in etwa:
PHP-Code:
$query = 'SELECT x FROM y WHERE ??';
$r = mysql_query($query);
echo <<<EOT
<tr>
<td>Label:</td>
<td>
<select name="proj" onchange="update_dropdowns();" disabled="disabled">
EOT;
while($row=mysql_fetch_array($r))
{
$sel = ($this->data->proj == $row['id']) ? ' selected="selected"' : '';
echo "<option value=\"{$row['id']}\"{$sel}>{$row['name']}</option>\n";
}
echo '</select></td></tr>';
____________________________________
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
|