You are here: Re: problem with getting info from 2 tables in PHP / MySQL « PHP Programming Language « IT news, forums, messages
Re: problem with getting info from 2 tables in PHP / MySQL

Posted by Shelly on 08/03/05 13:39

"utque" <utqsall@gmail.com> wrote in message
news:1123054221.632845.204180@g14g2000cwa.googlegroups.com...
> while you are accessing the sql database, try using the INNER JOIN
> command.
> $sql = mysql_query("SELECT * FROM logintableb INNER JOIN datatable
> WHERE
> logintable.school = datatable.school");
>
> I am not sure of it but trying doesn't hurt.
>

You post appeared **six** times. There seems to be a problem with your
newsreader.

This works:

$sql = mysql_query("SELECT * FROM logintableb, datatable WHERE
logintable.school = datatable.school");

there is no need to explicitly state "INNER JOIN".

Shelly

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация