Re: : request

From: Date: Thu, 17 Apr 2003 11:05:51 +0000
Subject: Re: : request
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144267@lists.php.net to get a copy of this message
Add a small iterator in your loop $i = 0; while($res = mysql_fetch_array($result)){ echo "The result is in row: $i"; $i++; } "Marius" <mariusrk@delfi.lt> a écrit dans le message de news: 1956953859.20030417123608@delfi.lt... > > <?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 > >

« previous php.general (#144267) next »