hi,
i want to select from more than two table using a single mysql query.please tell me a example query/.
thanks in advance

thanks.i tried this way

SELECT article.id,article.ar_title,article.owner,article.ar_date,addinfo.pat,login.username
FROM article
LEFT JOIN (
login,addinfo
) ON ( login.id = article.owner
AND login.id = addinfo.userid
AND article.owner = addinfo.userid ) 
WHERE article.owner =17
LIMIT 0 , 30 order by article.ar_date DESC
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.