I think i've nearly cracked it.. just need some guidence...
I've found this code on the Mods Forum...
<tr>
<td align="left" ><b>Project:</b></td>
<td>
<select name="project_id">
<option value="" selected>Select Project</option>
<?
$query ='SELECT project_id, project_name '.
'FROM ost_project '.
'WHERE isactive = true '.
'ORDER BY project_name';
$services=db_query($query);
while (list($projectId,$projectName) = db_fetch_row($services)) {
$selected = ($info==$projectId)?'selected':'';?>
<option value="<?=$projectId?>"<?=$selected?>><?=$projectName?>
</option>
<?
}
?>
</select>
</td>
</tr>
Now some how I need to get that merged with my code..
</td>
<th width="20%">Company:</th>
<td width="20%">
<select size="1" name="CompanyName">
<option value="" selected >Select Source</option>
<option>Tradestock</option>
<option>Nutrigold</option>
</select>
</td>
</tr>
the only difference is I need it to read the following from MySql.
SELECT *
FROM `category`
ORDER BY `category`.`category` ASC