I have a simple query:
$query = "SELECT
Item_Name, Item_wiki, Item_Website
FROM
items_list";
$result = mysql_query($query, $db) or die(mysql_error($db));
// loop through the results
while ($row = mysql_fetch_assoc($result)) {
extract($row);
I want to put another query inside it. I have a second table (item_clip) that holds the photos for each Item_Name. It's fields are clip_name, clip_photos.
items_list.Item_Name=item_clip.clip_name
How do I identify how many rows of photos the second table has for each entry in my first table?
(many thanks in advance from a humble nube)