Jump to content

SQL Related Projects


dee19802000

Recommended Posts

Ok, its like projects that are related to another, These should be related by client, category and type of project.  So when a user clicks on a project they will see projects that are related by those elements above in a scrolling box.  This is my prototype at the minute

 

http://2b.selfip.com/2bv4/project-details.php?cp_id=2&p_id=2

 

Dee

 

 

I have that done already, do i need to use a WHERE or LIKE statement to relate them?

 

 

 

For example, if the "Education" category id is 2, you would JOIN the tables like so:

 

SELECT * FROM projects p LEFT JOIN project_categories pc ON p.cp_id = pc.c_id WHERE p.cp_id = 2

 

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.