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
Share on other sites

Try asking again with the premise that we, the readers, are not psychic. It helps to tell us what you're trying to accomplish rather than stating you need to use INNER or UNION. How the heck would we know if we don't know what you're trying to do?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.