Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2012, 01:11 AM   PM User | #1
haboubamix
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
haboubamix is an unknown quantity at this point
Exclamation Help Me with Inner Join

Hy all Programmes , Please I Have One Probleme and Idon't Now How i Can Fix it !!

I Have 2 tables in database 'web96-bouzbal'
table 1 : links



table 2 : movies


I Make this Query But not working
PHP Code:
  // -- START MYSQL LINKS MOVIES INNER JOIN -- //
                  
                  
$sqlget "select movies.id,movies.title,links.name_link,links.embed from movies left join links on movies.id_movie=link.id_movie ORDER BY id DESC WHERE id='$id'"
                  
$getresult=mysql_query($sqlget);
                  
                  
                  
// -- FINISH MYSQL LINKS INNER JOIN --// 
......... and Making Looping With While But not Working !!

thank you !
haboubamix is offline   Reply With Quote
Old 09-25-2012, 01:08 AM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
For one thing your missing an 'S'

$sqlget = "select movies.id,movies.title,links.name_link,links.embed from movies left join links on movies.id_movie=link.id_movie ORDER BY id DESC WHERE id='$id'"

Should be links
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Tags
inner join, sql

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:34 PM.


Advertisement
Log in to turn off these ads.