Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
help me :) my e-mail is saurabhkalla1993@gmail.com
Posted

1 solution

I think you want to join 2 tables records together
The sql query is something like this

select from main table "movie" and join more information from other table "genres"

SQL
$sql = "
       SELECT movies.title, genres.name
       FROM movies LEFT OUTER JOIN genres
       ON movies.gen_id = genres.id
      "


MORE INFO
https://dev.mysql.com/doc/refman/4.1/en/join.html[^]

and an example
http://www.w3schools.com/sql/sql_join.asp[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900