Using PHP, I the following query:
"SELECT *
FROM `items`
JOIN `categories`
ON `items`.`category`=`categories`.`cat3`
WHERE `items`.`user_id` = '".$UID."'"
I'm trying to access the items.id field from the associative array. Problem is, $res['id'] seems to be giving me the id for the categories table.
How can I alter the code to get the ID from the items table?