Re: : request

From: Date: Thu, 17 Apr 2003 11:58:24 +0000
Subject: Re: : request
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144270@lists.php.net to get a copy of this message
<?php mysql_connect('host','user','passwd'); mysql_select_db('db'); $name = "Paul"; $query = "select * from guests where name like '%$name%'"; $row=0; $result = mysql_query($query); while($res = mysql_fetch_array($result)){ echo "The result is in row: $row"; $row++; } ?> ----- Original Message ----- From: "Marius" <mariusrk@delfi.lt> To: <php-general@lists.php.net> Sent: Thursday, April 17, 2003 1:36 PM Subject: [PHP] [PHP]: request > > <?php > mysql_connect('host','user','passwd'); > mysql_select_db('db'); > $name = "Paul"; > $query = "select * from guests where name like '%$name%'"; > $result = mysql_query($query); > while($res = mysql_fetch_array($result)){ > echo "The result is in row: "; > } > ?> > > what function should i use to echo in whitch row is result > > -- > Marius > mariusrk@delfi.lt > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#144270) next »