Jump to content

Search in arrays?


feri_soft

Recommended Posts

I have the following problem i have 5 checkboxes with the name asd[]
when someone is adding an article he is cheking for example 3 checkboxes with values 2,4,5

Then i have a search page.A user selects the chekboxes but in that order:

5,2,4

Will php create the same array with the values 2,4,5 ordering them in alph. order or it will create an array like 5,2,4.And if the second how can i make a search,because the values are the same but as they are stored in the row like 2,4,5 and i search for 5,2,4 i wont get anything.

Please help :)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.