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

[eluser]jedd[/eluser]
Try something like this instead:
Code:
SELECT
    * FROM users
LEFT JOIN
    userprofiles ON userprofiles.id = users.user_profile_id
WHERE
    users.id = $x

Two notes - first, use underscores between words within table and field names. Second, don't select * from tables unless you really need everything (you rarely do).


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