<select name="product_name" id="product_name" size="4" style="width:200px" class="text_select" onchange="return aijaxCall(aijaxCall_Path, 'product_size', '&product_id='+this.value);" >
<option value="">Select Product</option>
<?PHP
$sql="select * from product where category_id ='$res_parcat[category_id]' order by product_name";
$sel=mysql_query($sql);
while($res=mysql_fetch_array($sel))
{ ?>
<option value="<?PHP echo $res['product_id']; ?>"
<?PHP if($res_edit['product_id']==$res['product_id']) echo 'selected'; ?>>
<?PHP echo stripslashes($res['product_name']); ?></option>
<?PHP
} ?>
</select>
<input name="button" type="button" class="text_button" style="width:60px;" value="Select" id="select" onclick="return validation();"/>
this my code
This post has been edited by no2pencil: 01 February 2012 - 03:28 AM
Reason for edit:: Added code tags

New Topic/Question
Reply



MultiQuote






|