How do I get the row number from from an sql table query


Posted on 16th Feb 2014 07:03 pm by admin

Hi all

I have a table that I query and it returns a number of rows.
mysql_num_rows($query) = $total
Did you know?Explore Trending and Topic pages for more stories like this.

I want to have next and previous buttons, is there a way of retrieving the current row number, and can you move it backwards and forwards by 1, or do I have to keep a track of the button presses

many thanks
No comments posted yet

Your Answer:

Login to answer
181 Like 51 Dislike
Previous forums Next forums
Other forums

Populate drop down list from table??
Lets say for arguments sake that i have a table which contains the numbers 1 to 10.
How can i get

HTML form problem
Ive made a form to that i want to send to my email via PHP. but when it send only the name's etc sen

multiple recipients + dbuser mail recall
Hello,

I am building a php login script.

When the user registers the script will send

simple script won't work. Please help
I'm new to php, and I am having trouble displaying a simple script in my web browser. My php code ex

Help with php code
Hello, can anyone tell me why this php word trap fails to work,
and the trigger words get blow r

Function
How can I make this function that once you click the link in the code it takes you to a new page wit

pop3 and fsockopen
So I am able to connect to the pop3 server, log in, and check how many messages there are. I am hav

Change Age automatically
hi guys . im new to php , is it possible to change age value in mysql automatically when year change

how to make database item unique
Hey guys,

is it possible to do this:

I have the database item $title being pulled for

how to validate date using javascript
I need to validate date in textbox using javascript..
The date is must be not greater than TODAY

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash