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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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:[EMAIL PROTECTED]]
> Sent: Tuesday, August 28, 2001 8:21 AM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to