You are here: Re: Query Problem « All PHP « IT news, forums, messages
Re: Query Problem

Posted by cover on 01/03/06 00:34

On Mon, 02 Jan 2006 06:18:00 GMT, L?pher Cypher
<lupher.cypher@verizon.net> wrote:

>I think the problem might be that area is an ambiguous name in this
>query (it is in both tables). Try changing it to
>if ($area != "All") $query .= "and (shakers.area='$area' or
>motors.area='$area')";


Maybe this presses the envelope a little bit but if

if ($area != "All") $query .= "and (shakers.area='$area' or
motors.area='$area')";

works well for two tables, why doesn't

if ($area != "All") $query .= "and (shakers.area='$area' or
motors.area='$area' or contacts.area='$area')";

work for three tables? Obviousl syntax error of some kind but...

 

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

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