Provides support for session storage using a MySQL brand database
Method Summary
-
string
db_error()
Returns the text of the error message from previous database operation
-
string
db_escape($string)
Escape a string before using it in a query statement
-
array
db_fetch_row($result)
Extract a row from a query result set
-
int
db_num_rows($result)
Count the rows in a query result
-
mixed
db_query($query)
Execute an SQL Query
db_error , db_escape , db_fetch_row , db_num_rows , db_query , sessionDestroy , sessionGC , sessionRead , sessionWrite
initialize , regenerate , sessionClose , sessionDestroy , sessionGC , sessionOpen , sessionRead , sessionWrite , shutdown
initialize , read , regenerate , remove , shutdown , write
Methods inherited from sfStorage
getOptions , initialize , read , regenerate , remove , shutdown , write , __construct
Method Details
-
Returns the text of the error message from previous database operation
returns The error text from the last database function
-
(string) db_escape ($string)
Browse code
| $string |
The string to escape |
Escape a string before using it in a query statement
returns The escaped string
-
(array) db_fetch_row ($result)
Browse code
| $result |
Result of a query |
Extract a row from a query result set
returns Extracted row as an indexed array
-
(int) db_num_rows ($result)
Browse code
| $result |
Result of a query |
Count the rows in a query result
returns Number of rows
-
(mixed) db_query ($query)
Browse code
| $query |
The query to execute |
Execute an SQL Query
returns The result of the query
|