odbc_fetch_row

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!

Moderator: General Moderators

Post Reply
nawhaley
Forum Commoner
Posts: 85
Joined: Wed May 18, 2005 11:43 am

odbc_fetch_row

Post by nawhaley »

Can someone explain to me how this function offically works now? I'm pulling a row from my database by using a line similar to the following.

Code: Select all

$cq = odbc_fetch_row($_SESSION["questionresults"],$_SESSION["counter"]);
now if I made $_SESSION["counter"] 1 it gives me the first record in my database and if I make it 0 it gives me the second record which is the last record I put in just to have something to test with. Now I'm really confused it making the row it pulls 0 am I pulling the last record in the table or is it counting backwards?

P.S.Reason I'm posting this hear rather than looking it up on PHPs manual is I"ve looked at their documentation on this function and its pretty aweful there seems to be a lot of confusion on these functions of late.
nawhaley
Forum Commoner
Posts: 85
Joined: Wed May 18, 2005 11:43 am

Post by nawhaley »

and bump someone please take time out to look at this line of code and give me some input please.
Post Reply