Re: query question

From: Date: Tue, 28 Aug 2001 13:41:28 +0000
Subject: Re: query question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11898@lists.php.net to get a copy of this message
I want to loop round $result fetching rows and if the current row is not needed then removing it from $result, $result will then get used again but with the said rows removed. I am trying to do this to avoid some major code changes with what I am working with. "Rick Emery" <remery@excel.com> wrote in message news:EAA093B474ABD311A71E00508B5FE08305C2C83A@adntex03.us.excel.com... > What exactly are you trying to do? Do you want to delete certain rows from > $result? Or delete ALL rows, in which you'd use: > mysql_return_result($result); > > If you want to delete certain rows, you can't. You just have to make your > selection criteria more precise. Then, fetch row by row to weed out those > rows you do not want. > > rick > -----Original Message----- > From: L Melville [mailto:lee.melville@lineone.net] > Sent: Tuesday, August 28, 2001 8:21 AM > To: php-db@lists.php.net > Subject: [PHP-DB] query question > > > Hi, > > If I run a query;- > > $result = mysql_query($query); > > is there a way of deleting rows from $result after this runs. Or does > anyone have any idea of how $result is generally structured when > mysql_query($query) is run. > > thanks > > > > > -- > 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 (#11898) next »