2 Replies - 166 Views - Last Post: 01 February 2012 - 03:29 AM Rate Topic: -----

Topic Sponsor:

#1 phpmyway  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 27-January 12

i have a problem in my dropdown box

Posted 01 February 2012 - 03:10 AM

<select name="product_name" id="product_name"    size="4" style="width:200px" class="text_select" onchange="return aijaxCall(aijaxCall_Path, 'product_size', '&amp;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


Is This A Good Question/Topic? 0
  • +

Replies To: i have a problem in my dropdown box

#2 no2pencil  Icon User is online

  • 2 girls, 1 club
  • member icon

Reputation: 3061
  • View blog
  • Posts: 22,961
  • Joined: 10-May 07

Re: i have a problem in my dropdown box

Posted 01 February 2012 - 03:28 AM

View Postphpmyway, on 01 February 2012 - 05:10 AM, said:

this my code

This isn't our project, so you'll need to be a little more forthcoming with the details...
Was This Post Helpful? 0
  • +
  • -

#3 Macjohn  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 79
  • View blog
  • Posts: 407
  • Joined: 10-April 09

Re: i have a problem in my dropdown box

Posted 01 February 2012 - 03:29 AM

Hey there, we'll have not problems helping you.
But remember, always use the CODE TAGS around your code! and please explain your problem, and have you've tried to solve that problem.
:sarcasm:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1