Selecting Rows Based on Row Values Being in Array



Hello All,

I'm attempting to return rows from a mysql DB based on this criteria:

I have a list, in the form of an array that I need to compare against each
row
in the table. Where theres a match I need that entire row returned.

e.g. $varListof 3outOf_10Fields = array(6blue40lbs, 7orange50lbs,
8orange60lbs, 9purple70lbs);

The array contains 3 of the db row fields in 1 value. However there are 10
fields/columns in the table.

===============
what table looks like |
===============
size color weight
ROW 1 | value1 | value1 | value1 | value1 | value1 | value1 |

So how could I set up a query that would SELECT the entire row, if the row
contained $varListof 3outOf_10Fields[1].

Open to any suggestions or work arounds. I'm playing with extract() but
code is too crude to even post.
.



Relevant Pages

  • Re: Drop down lists and vlookup? or Match?
    ... exactly the same way except that the criteria in this case is different. ... This will return an array of TRUE's or FALSE's. ... Sheet2 has the employee list. ... Does each crew have the same number of people assigned? ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Data Validation with repeaters excluded from the source list
    ... I have eliminated the helper column. ... As said before I have the source data in Column B starting from row no 3 and ... did not know that criteria could be an array. ... array why is it that here range is a smaller array as compared to criteria. ...
    (microsoft.public.excel.misc)
  • Re: Advice about fetching user information
    ... but actually *selecting* them in MySQL ... PHP scripts and use a gaugefunction to time pretty much every ... The same is pretty much true for searching an array in PHP - ... But I wouldn't be searching. ...
    (comp.lang.php)
  • Re: Using DBI, better option than importing into @array
    ... MySQL, though, so I'm having fun with the challenges along the way. ... importing the subjects table into an array in the beginning of the ... is not a good measurement. ... That's extremely helpful, Peter. ...
    (comp.lang.perl.misc)
  • Text in Column A, numbers in Column B, and text criteria in C1
    ... I have a similar spreadsheet where I am trying to use the array formula below; however in using this array and entering with CSE I am receiving a "#num!" ... With text in Column A and numbers in Column B, and text criteria in C1,Try ... I am trying to craft a formula which will extract the largest nth ...
    (microsoft.public.excel.worksheet.functions)