Re: request

From: Date: Sat, 26 Apr 2003 14:47:13 +0000
Subject: Re: request
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145357@lists.php.net to get a copy of this message
I don't understand what you are asking... your query says to only grab records where column like $word, there for the only records that are pulled should be those you wish to display.. maybe i am incorrect in what you are asking.. Regards Chris Kay At 05:35 PM 26/04/2003 +0200, Marius wrote:
<?php mysql_connect('host','user','passwd'); mysql_select_db('db'); $q = "select * from table where column like '$word'"; $res = mysql_query($q); while($row = mysql_fetch_array){ echo $row['column']; } ?> what funcion should I use that mysql echoes only rows with records -- Marius mariusrk@delfi.lt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Chris Kay (CK) Eleet Internet Services Ph: 0415 451 372 Email: chris@eleet.com.au

« previous php.general (#145357) next »