Hi all..i dont know what's wrong with my codes below..i have one table named category which have cat_id,cat_code,cat_desc.I want to list out cat_code.It success.All data will listed out but in blank.Thanks in advance
PHP Code:<select name="cat_code">
<?
$sqlstmt=mysql_query(" SELECT cat_code FROM category");
while($result=mysql_fetch_array($sqlstmt))
{?>
<option value="<? echo $result['cat_code']?>"></option>
<? } ?>
</select>




Reply With Quote