Jump to content

[SOLVED] Don't show if in database... Tired as hell and can't think how to do this...


Recommended Posts

Hi All

 

As per usual I have left everything til too late, and its 1am over here in the UK and my deadline is tomorrow, anywho I can't think how to do this very simple thing...

 

Basically I have a drop down list, and a query. Here's basically what I want to do:

 

in the drop down list is a list of attributes for a property, ie 'Garage', 'Bedrooms', etc etc This is not generated by a database, just listed

 

I have a query that lists attributes already added for a given property, so basically if 'Bedroom' appears in the results for a query, I do not want 'Bedrooms' to appear in the dropdown list...

 

Any ideas how to tackle this one? I thought of populating an array with the results in the database and using the 'if (!(in_array.... show this row in dropdown...' is this the best solution?

 

Ta in advance! xx

Ta very much everyone. I made two arrays and removed from the master array the values in the secondary array, and populated the dropdown list from the master.

 

Thanks again all. I'm off to bed now, Night Night!!!

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.