$query = mysql_query("SELECT id_pg, slot_1, slot_2, slot_3, slot_4, slot_5 FROM backpacks JOIN pgs ON backpacks.id_pg = pgs.id"); $array = mysql_fetch_array($query); $query_check = mysql_query ("SELECT id_equip, nome FROM equips"); $array_check = mysql_fetch_array($query_check); $count = count($array); ?> Il tuo Inventario:
Slot 1:
Slot 2: