Do you want a single query where the values in your array are in the where ? Like this:
$values = implode(",", $your_array);
$query = "SELECT * FROM table WHERE column IN ($values)"
pritaeas
Posting Prodigy
9,314 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86
Can you tell me what's not working ?
If nothing is displayed, perhaps because you need to
<?php echo $newArray["BNF_Name"]; ?>
I don't know if your site is setup to use <?= as a short tag for echo.
pritaeas
Posting Prodigy
9,314 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86
Your values are string, and therefor all need to be in separate quotes whithin the IN (...). I was expecting id's (integers) and then they are not needed. My apologies.
pritaeas
Posting Prodigy
9,314 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,465
Skill Endorsements: 86
Question Answered as of 4 Years Ago by
pritaeas
and
oldcat