thenewprogrammer
New Member
- Messages
- 45
- Reaction score
- 0
- Points
- 0
trying to make profile page which displays information from 3 differnt table using full join for the current user thats logged in which is in the variable $user.
need to select table 'users' to get their info and than connect users to the table 'pets' for pet information and the petid number, than connect that to table called 'pettable' which has oringal pet image and other things. tryed with full join but dont really get how the syntac goes
currently have
which fails when i test it.
need to select table 'users' to get their info and than connect users to the table 'pets' for pet information and the petid number, than connect that to table called 'pettable' which has oringal pet image and other things. tryed with full join but dont really get how the syntac goes
currently have
Code:
SELECT * FROM users FULL JOIN pets ON user_name='$user'
FULL JOIN pettable ON pet_id=pet_num
which fails when i test it.
Last edited: