PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am converting a web site from ASP/VBScript to PHP it is driven by an MySQL Database. In asp I can do the following
Do Until rs.EOF
Print whatever code I want
rs.movenext
Loop
How do I create a loop like this in PHP. One that will read a Recordset from a query and output it as I see fit and then move to the next record until there are no records left.
I would guess your problem stems from using $rs->moveNext(). Make sure that function exists on the $rs object. twigletmac's method is what I always use.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.