Creating a Generic Query Function |
||||||||||||||||||||
The hr_db.inc file contains a db_do_query() function that performs the following steps (with OCI8 library calls shown) to execute a query, optionally with bind variables:
The db_do_query() function provides the following parameters:
The db_do_query() function returns the result set as an array or rows or columns, depending on the value of the $resulttype parameter. The function returns a false value if an error occurs.
|