943,649 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1399
  • PHP RSS
Sep 25th, 2006
0

Searching within arrays problem

Expand Post »
Hi People,

First of all I would like to appologize if this has been posted before but I have not been able to find the answer.

The Problem

Basically what I'm trying to do is create a page that lists all assets from an assets table and disables the check box for the ones that have been patched (which the records are held in a comma seperated column called asset_tags in the patching table). This is where it gets complicated I have two assoc arrays and I want to search the assets tables with values from the patching table and the assets that have been patched should have a checkbox disabled and the ones that haven't been patched to show that check box enabled.

Any help or point in the right direction would be greatly appreciated, my humble a kindest regards.

mus
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bigmushy is offline Offline
2 posts
since Sep 2006
Sep 26th, 2006
0

Re: Searching within arrays problem

Are you using database? If so, in the output, arrange the data (both asset name and situation - patched or not) into a single array. For example: [php]$data = $row['asset_name']." - ".$row['situation']."\n";[/php]When displaying the reseult, use explode fuction to separate the asset_name to the situation. I hope this help.
Last edited by zippee; Sep 26th, 2006 at 6:09 pm.
Reputation Points: 10
Solved Threads: 7
Posting Whiz in Training
zippee is offline Offline
294 posts
since Jan 2005
Sep 27th, 2006
0

Re: Searching within arrays problem

Hi Zippee,

Click to Expand / Collapse  Quote originally posted by zippee ...
Are you using database? If so, in the output, arrange the data (both asset name and situation - patched or not) into a single array. For example: [php]$data = $row['asset_name']." - ".$row['situation']."\n";[/php]When displaying the reseult, use explode fuction to separate the asset_name to the situation. I hope this help.

Thanks for your reply I am using a database and have managed to find a way round this as you have described, once again thank you very much dude.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bigmushy is offline Offline
2 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How to install mysqli extension
Next Thread in PHP Forum Timeline: create password storage/retrieval program?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC