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

problems with script
I made a small script wich exchanges points in my website:


<?php
session_start

Run function every 5 mins ??
I have a function PostMessage()

How can I run it every 5 mins ??

foreach help.
Hello all,

First time I'm attempting to use a foreach statement and was just wondering if my

Better Method of a Member Cloud
I assume most people know how tag clouds work, where the tags most used are bigger and the least use

array help
Does anyone know how to require 10 text fields for individual grades and output class average? (10 p

need help with date function
i have following form for date

Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01

Table sorting
Hi,

I'm trying to modify the following in order to make the output table sorted alphabeticall

Aris, Netweaver BPM, Visual composer and X'app
Dear Experts,

Whats the relationship between the following components: Aris, Netweaver BP

ALV grid with 2 headers
Hi Gurus,

I need to display ALV GRID as below.

Header1

Email logic not working
I would like to send an email using the php email() function then if it does execute i.e sends i wou

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