Jump to content

MySQL Join?


wiggst3r

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

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.