Hello,
I have a few questions about using arrays in PHP.
1) I have a table in my database that has a list of products with ID numbers that designate each product. How could I capture a list of all the ID numbers and put them into an array.
2) Once I have that array, is it possible to remove some items from the array. For example I have an array: {1, 4, 6, 9, 12, 16, 21, 44} and I want it to remove items 6 and 12 from the array.
3) And then once I have the final list of numbers in my array, how can I extract them and display their names. Is there an easy way to make a loop that searches the table for each product's name based on its ID number?
Thank you.