API17

JDatabaseMySQL::fetchAssoc: Difference between revisions

From Joomla! Documentation

m See also: moving preparation
m clean up
Line 4: Line 4:
Method to fetch a row from the result set cursor as an associative array.  
Method to fetch a row from the result set cursor as an associative array.  


{{Description:JDatabaseMySQL::fetchAssoc}}
{{subst:Description:JDatabaseMySQL::fetchAssoc}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JDatabaseMySQL::fetchAssoc|Edit Descripton]]<nowiki>]</nowiki>
</span>
<source lang="php">
<source lang="php">
protected function fetchAssoc ($cursor=null)
protected function fetchAssoc ($cursor=null)
Line 32: Line 30:
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[API17:JDatabaseMySQL::fetchAssoc|Other versions of JDatabaseMySQL::fetchAssoc]]
* [[API17:JDatabaseMySQL::fetchAssoc|Other versions of JDatabaseMySQL::fetchAssoc]]
{{SeeAlso:JDatabaseMySQL::fetchAssoc}}
{{subst:SeeAlso:JDatabaseMySQL::fetchAssoc}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabaseMySQL::fetchAssoc|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 15:03, 24 March 2017

Joomla 11.1 JDatabaseMySQL::fetchAssoc

Description

Method to fetch a row from the result set cursor as an associative array.

{{subst:Description:JDatabaseMySQL::fetchAssoc}}

protected function fetchAssoc ($cursor=null)
Parameter Type Default Description
$cursor mixed null The optional result set cursor from which to fetch the row.
  • Returns mixed Either the next row from the result set or false if there are no more rows.
  • Defined on line 603 of libraries/joomla/database/database/mysql.php
  • Since Joomla 11.1

See also

{{subst:SeeAlso:JDatabaseMySQL::fetchAssoc}}

User contributed notes

<CodeExamplesForm />