php - How to join 2 tables & display them correctly? -


Here is a picture of 2 tables.

The mybb_users table is the table that users who sign up for a forum.

mybb_userfields is a table that has custom profile field data that they are capable of optimizing & amp; Changes to your profile

Now, all I want to do is display all the users in the rows along with the custom profile field data they provided in their profile (which is mybb_userfields Table)

How can I display these areas simultaneously?


For example, p0gz is a male, resides in Ege, he owns 360, does not know his bandwidth & amp; Flip-Side Phoenix is ​​his team. How can it be in a line like "p0gz-male-az-360-dont know-flipside phoenix ~ ~

This is a normal LEFT JOIN

 Join  SELECT * from mybb_users at IBAbb_userfields (mybb_users.uid = mybb_userfields.ufid) WHERE user name = 'p0gz'  

This user is p0gz < / Code>

should display every line

Comments