Welcome Guest, Not a member yet? Register   Sign In
MySQL JOIN
#3

[eluser]tekhneek[/eluser]
Code:
SELECT * FROM users AS u, users_profiles AS up WHERE
u.uid = up.fk_uid AND
u.uid = {$row->id}

Something like that maybe? That's essentially the same as
Code:
SELECT * FROM users JOIN users_profiles ON users.uid = users_profiles.fk_uid WHERE users.uid = {$row->uid}

Or that


Messages In This Thread
MySQL JOIN - by El Forum - 05-19-2009, 10:07 AM
MySQL JOIN - by El Forum - 05-19-2009, 10:49 AM
MySQL JOIN - by El Forum - 05-19-2009, 11:15 AM
MySQL JOIN - by El Forum - 05-19-2009, 12:04 PM
MySQL JOIN - by El Forum - 05-19-2009, 12:33 PM
MySQL JOIN - by El Forum - 05-19-2009, 12:45 PM
MySQL JOIN - by El Forum - 05-19-2009, 12:52 PM
MySQL JOIN - by El Forum - 05-20-2009, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB