Jump to content

Recommended Posts

Hi

 

I have 2 tables with information that I want to compare.

Table one has 7 fields. (id, name, email, opt_in, email_opt_in, pin_number, entered_pin).

Table two has 4 fields. (id, pin, to, from_name)

If the pin is in table two, then it is also in table one.

entered_pin is a boolean.

What I want is to join the tables based on the pin field, and then see which of the pins has the entered_pin value of 1.

Is this possible?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/139831-mysql-join/
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.