API15

JDatabase/PageExecute: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
Line 61: Line 61:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=PageExecute
  category=PageExecute
  category=JDatabase
  category=JDatabase
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 00:25, 25 March 2017

Description

ADODB compatability function

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

PageExecute($sql, $nrows, $page, $inputarr=false, $secs2cache=0)
Parameter Name Default Value Description
$sql
$nrows
$page
$inputarr false
$secs2cache 0

Defined in

libraries/joomla/database/database.php

Importing

jimport( 'joomla.database.database' );

Source Body

function PageExecute( $sql, $nrows, $page, $inputarr=false, $secs2cache=0 )
{
        jimport( 'joomla.database.recordset' );

        $this->setQuery( $sql, $page*$nrows, $nrows );
        $result = $this->loadRowList();
        return new JRecordSet( $result );
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples