You are here: Re: mysql selecting distinct in one collumn but retrieving all the the other cols too « PHP Programming Language « IT news, forums, messages
Re: mysql selecting distinct in one collumn but retrieving all the the other cols too

Posted by monomaniac21 on 07/12/06 16:00

heres the query im trying (well one variant):

$result = mysql_query("SELECT name, id FROM tblproducts WHERE category
= '$category_get' & name = DISTINCT ORDER BY name ASC LIMIT 0,8");

also tried: "select distinct name, id.." to no avail...


monomaniac21 wrote:
> hi!
>
> is it possible to do the aforementioned query - selecting only distinct
> in 1 col but retrieving all other cols at the same time.
>
> regards
>
> marc

 

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

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