Reply to Re: mysql query

Your name:

Reply:


Posted by macca on 09/29/07 02:10

On Sep 29, 12:48 am, Ron Eggler <NORE...@example.com> wrote:
> Hi,
>
> I would like to place a mysql select query but avoid double entries.
> I have a table with events from a city, there's more than one even in one
> city so the city appears multiple times. Now i want to select the city
> first and in a second run i'm gonna read all the events from this city.
> How would i do this, how would the select statement look like? Or do i need
> to get it all back and ditch multiple entries in php?
>
> Thanks!
> Ron


Sounds like an SQL question to me.

You should ask in comp.databases.mysql.

You want something like:

SELECT * FROM events WHERE city='some_city'

[Back to original 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

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