Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
|
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 3rd, 2003, 06:16 PM
Authorized User
 
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to manipulate recordsets

Hi,

this is the equivalent asp code of what I want to do.

'--------------------------
oRS.CacheSize = 10
intPageCount = oRS.PageCount
intRecordCount = oRS.RecordCount

If intRecordCount > 0 Then
    oRS.AbsolutePage = intPage
    start = oRS.AbsolutePosition
    If CInt(intPage) = CInt(intPageCount) Then
        finish = intRecordCount
    Else
        finish = start + (oRS.PageSize - 1)
    End if
End If
'-----------------------------

how can I do the samething in php?

Thanks
 
Old September 25th, 2004, 01:21 PM
Authorized User
 
Join Date: Aug 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to dkittell Send a message via AIM to dkittell Send a message via Yahoo to dkittell
Default

Are you looking to create pages of the records like next/previous page of records or are you trying to do DB page navigation based on the record?

---
David Kittell





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to manipulate diagramms? zip Crystal Reports 1 June 12th, 2006 11:20 AM
manipulate recordset k2_andy Access VBA 1 May 30th, 2004 05:46 PM
manipulate variable Thodoris SQL Server 2000 2 May 28th, 2004 03:27 AM
how to manipulate recordset allang Classic ASP Databases 1 November 3rd, 2003 05:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.