I have been working on my game and I have code like this:
$grabItem = mysql_query("SELECT * FROM equipment_inventory AS inv, equipment_templates AS temp WHERE inv.item_id = temp.item_id");
$item = mysql_fetch_array($grabItem);
Now, assume I want to grab the value item_id from the inventory and the templates table using this code
echo $item['user_id'];
Well, as you can see, there are 2 user_id values. One from inventory and one from templates. How would I force it to grab from one or the other table? I tried echo $item['inv.user_id']; and I had no luck...