PHP next MySQL row - how to move pointer until function checks true?

Posted by ropbhardgood on Stack Overflow See other posts from Stack Overflow or by ropbhardgood
Published on 2010-03-30T01:06:22Z Indexed on 2010/03/30 1:13 UTC
Read the original article Hit count: 340

Filed under:
|
|
|

I have a PHP script which takes a value from a row in my MySQL database, runs it through a function, and if it determines it's true returns one value, and if it's false, it needs to go to the next value in the database and check that one until eventually one returns true. I think I need to use mysql_fetch_assoc, but I'm not really sure in what way to use it... I wish I could post my code to be more specific, but it's a lot of code and most of it has no bearing on this issue...

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql