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.