Re: Multiple Entry

From: Date: Wed, 01 Aug 2001 16:35:08 +0000
Subject: Re: Multiple Entry
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10958@lists.php.net to get a copy of this message
If I understand you correctly you might try a query like: select services from tabl where machine_name="UAMAIL3"; That should only return one result based on the data you gave... My 2 ¢ John Pickett http://www.bvstudios.com/ Co-Author: Inside Dreamweaver 4 http://www.amazon.com/exec/obidos/ASIN/0735710848/xtremist ----- Original Message ----- From: "Sharif Islam" <mislam@students.uiuc.edu> To: <php-db@lists.php.net> Sent: Wednesday, August 01, 2001 10:30 AM Subject: [PHP-DB] Multiple Entry > > I have some data in a table like this: > > +----------------------------+--------------+ > | services | machine_name | > +----------------------------+--------------+ > | MS Exchange Server and BDC | MAIL | > | Microsoft Exchange for UA | UAMAIL1 | > | Microsoft Exchange for UA | UAMAIL2 | > | Microsoft Exchange for UA | UAMAIL3 | > +----------------------------+--------------+ > > As you can see, there are same entry for the services column. So If > I to display in php : > > select services from table; then I will get three same entry. > > > Is there any way, I can get only one output.But somehow I have to > incorpate it with the other data in that column, which doesn't have > multiple entry. Any hint? thanks in advance. > > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.db (#10958) next »