Jump to content

Help with joining mysql statments


mike12255

Recommended Posts

I got two statments:

 

"SELECT id FROM approvednotes WHERE authoer = '$username'";

"SELECT nid FROM usersdownloaded WHERE username - '$author'";

 

and then once I get results from both of those I want to search approved notes again using only the matches from the statements above and what I want to select this time is "SELECT * FROM approvednotes WHERE md5 ='$md5'"; But I dont actually want to search all the listings just the ones that returned true in the first two statements, is there a way to join these three statements into one? I hope I made myself clear if not let me know and ill try to reexplain.

 

Link to comment
https://forums.phpfreaks.com/topic/248596-help-with-joining-mysql-statments/
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.