![]() |
join 3 table?
Hi, to keep things simple I have 3 table..
user id, username blog id, blog_post, user_id blog_comment id, blog_id With blog_id in the blog_comment, i wan to retrieve the username, how do i do it?.. (I need the query string) Thanks |
Code:
SELECT u.*, b.*, bc.* FROM blog_comment bc LEFT JOIN blog b ON(b.id=bc.blog_id) LEFT JOIN user u ON(u.id=b.user_id) |
Code:
$get = mysql_query(" |
| All times are GMT. The time now is 11:15 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0