Hi Friends:
I have created a new field in newticket.inc.php, his field names category and is a combo-box. At the same time, i have created a new field in the ticket_table with the same name (category) as enum with three options ('monitor','software','IBM').
When i open a ticket i select any option from this field and it records into the table.
My problem is this, in viewticket.inc.php i have created the category field to show the category of the ticket and i have the next source:
<tr>
<th>Categoria:</th>
<td><? $services= db_query('SELECT categoria FROM'.TICKET_TABLE.' ORDER BY categoria');
while (list($categoria) = db_fetch_row($services)){?>
<option value="<?=$categoria?>" <?
if($_POST==$categoria) echo
'selected="selected"';
?>><?=$categoria?></option>
<? } ?>
</tr>
The problem that i have is that i get the category of the all tickets in the table. How i can select the category for each them?
Thanks a lot for your time and the answers