php - inner join query don't return any things -


I have a php code in it for a mysql query Uses. The tables have the correct values ​​to select users and conversations and main_profile to query after this query but nothing returns the query.

  $ SqlQuer = "SELECT` conversation`,` Conversation`. Text, `main_profile` .___name,` Conversation` with `user`. Id 'INNER' user '(' user ' `.User =` Conversation`. So say INNER to `main_profile '(` user `.id =` main_profile` .user_id), where' conversations'. = ''. $ "'.' 'And' conversation '.0 =' 0 '"; $ Result = mysql_query ($ sqlQuer) or die (mysql_error ()); While ($ line = mysql_fetch_array ($ result)) {echo $ line [0] "# text #" $ line [1] "# Text #" $ line [2] "# CON #"; $ Id [] = $ line ['id']; }   

Any Idea

Resolve question with this change It was done that Inner Joyin was changed to the Left Joiner and the other was changed to join the right way.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -