• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MySQL database query

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have 4 tables in mysql.
categories
jobs
jobseekers
applications

I am trying to list all jobs on my homepage so that jobseekers can apply. Applications is a bridge table in between jobs and jobseekers.
What I am trying to do unsucessfuly is list jobs on home page in PHP index.php that includes all the job table column data as well as category name. At the moment I am only listing category ID with the job details and not category name.
Can anyone suggest the right query? I think it may require a join.

Thanks

Rob
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Nowlan wrote:What I am trying to do unsucessfuly is list jobs on home page in PHP index.php that includes all the job table column data as well as category name. At the moment I am only listing category ID with the job details and not category name.
Can anyone suggest the right query? I think it may require a join.


And which query are you currently using? And which information (columns) want you to display on your home page?
 
It's exactly the same and completely different as this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic