LSModule:MySQL:mysqlresult (Object Type)

From Lavish Software Wiki
Revision as of 21:27, 15 May 2006 by Lax (talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to navigation Jump to search

Description

Object Type Vitals
mysqlresult
Defined By MySQL Module
Inherits none
Reduces To NULL
Variable Object Type mysqlresult
Uses Sub-Types no
C/C++ Type CMySQLResult *

A MySQL query result set

Members

  • bool Valid: TRUE if the result set is populated
  • bool ValidRow: TRUE if a row is fetched
  • uint Fields: Number of fields in the current result set
  • uint Rows: Number of rows in the current result set
  • string GetString[field]: Retrieves a field by ID (1-based) or field name, as a string
  • int GetInt[field]: Retrieves a field by ID (1-based) or field name, as an int
  • float GetFloat[field]: Retrieves a field by ID (1-based) or field name, as a float

Methods

  • FetchRow: Fetches the next row (as in mysql_fetch_row())
  • Clear: Clears the result set

See Also