Dear List,

I have this sql command that grabs a result of 3 tables. What i want is if
there's a way to do a while printing the site and url and after it's finish
begin, printing site_2 and url_2.

SELECT celebridades.*, links_relacionados.Nome_Link as
site,links_relacionados.Url_link as url, fanclubes.Nome as
site_2,fanclubes.Site as url_2

 FROM celebridades LEFT JOIN links_relacionados ON
links_relacionados.CelebID=celebridades.CelebID LEFT JOIN fanclubes ON
fanclubes.CelebID=celebridades.CelebID WHERE celebridades.CelebID='$celebID'

Thank's in advance

Rodrigo Peres

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to