Jump to content

How To Use Multiple Select Drop Down


aashcool198

Recommended Posts

HI..

 

my form has one multiple select dropdown box which gives me selected values in an array.

I want to know how can i write mysql query so that i get all the results in which any of the selected case is possible.

 

for example if my array is arr[] than i want to write

 

$result = mysql_query("select * from student where name=arr[0] or name= arr[1] or name=arr[2]....so on....");

 

I don't know how many elements are there in the array hence can't write it directly.. how can i do it?

Link to comment
https://forums.phpfreaks.com/topic/184387-how-to-use-multiple-select-drop-down/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.