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

Problem with "dynamic" index page
Hi. I have one question. In my index.php page I have this kind of code:
Code: // listaa sivut

Hotlinking Picasa as the image folder of a website
Hi there PHP freaks, I would like to create a private album in Picasa to use it as the image folder

foreach and array need help combining
Hi guys.

Here's the code

Code: array(
'tag' => 'code',<

php slowing my site?
Hi all,

I think that one of the reasons that my site doesn't work fast is that the code is ve

TimeZoneOffset
Hello,

Please i need your help. I have a system that users can use to punch in and out. This

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

Parse error: syntax error, unexpected T_ELSEIF in /home/......html/item.php on l
I do not know what is wrong with this. Hope some one can help. I do nto want to post the entire site

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

New Search Engine
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

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