Jump to content

INNER / UNION


acctman

Recommended Posts

        $res = @mysql_query("SELECT *, DATE_FORMAT(m_lld,'%m/%d/%y') AS m_lld_formatted FROM social_members 
                                        LEFT JOIN social_member_types ON t_id=m_type WHERE m_user='".$en['user']."'");

 

I need to add and INNER or UNION to the query to that I can grab all the fields from social_mcouple IF m_type = 2 THEN social_members.m_id = social_mcouple.c_id and grab all fields.

 

Can anyone assist me, thanks

Link to comment
https://forums.phpfreaks.com/topic/199318-inner-union/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.