Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > Programming > Database Integration
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

Database Integration How to use MySql, PostgreSQL, MS SQL, Oracle, and most other databases with PHP.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16th September 2008, 21:39
alquimista's Avatar
D4PHP Guru
 
Join Date: Aug 2008
Location: Guadalajara, México
Posts: 234
alquimista is on a distinguished road
Default Datasource: can it be a simple array?

Hi,

I'm using a third party paginator that I'd like to use with dbRepeater. The paginator returns an array with records of the current page. Is it possible somehow to associate the dbRepeater and labels within it, to the resulting array?
Is it possible to associate a DataSource component to an array generated dynamically?

Thank you,
Guillermo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 16th September 2008, 23:10
alquimista's Avatar
D4PHP Guru
 
Join Date: Aug 2008
Location: Guadalajara, México
Posts: 234
alquimista is on a distinguished road
Default Maybe with datasets....

Hi,

Having an array with data and I want to show it using a dbRepeater, I tried:


PHP Code:
        $dataSet = new DataSet;

        
$dataSet->open();

        while(
$registro mysql_fetch_array($pe_resultadoPaginador))
        {

            
$dataSet->insert();
            
$dataSet->initRecord($registro);
            
$dataSet->post();
        } 
Yet its not working...

Any suggestions please?

Thank you,
Guillermo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 17th September 2008, 02:12
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,273
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

The code for a paginator is very easy to construct and would probably be faster than trying to figure out how to reverse engineer it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 07:34.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use