How to get value in php from database when:
mysql_query("SELECT * FROM user
INNER JOIN phone p1 ON user.IDPhone1 = p1.ID
INNER JOIN phone p2 ON user.IDPhone2 = p2.ID )
columns of table phone: id, number, operator, model...
How to get for each user value "number" from table phone
Tried:
echo $r['p1.number']
echo $r['p2.number']
And
echo $r['user.IDPhone1.number']
echo $r['user.IDPhone2.number']
And many others :x