Index

(server)

o2dbs_query

array o2dbs_query(string $server_name, string $command_str)

Executes a sql query directly on database server and returns the result dataset as an array, in the form:

arr[0] = array(field_0 => value_0, field_1 => value_1, ...)
arr[1] = array(field_0 => value_0, field_1 => value_1, ...)
...
arr[n] = array(field_0 => value_0, field_1 => value_1, ...)

This function is useful to execute queries for dataset retrieving. If you need to execute statements, like UPDATE, DELETE, CREATE, ecc... see o2dbs_execute() function instead.


Parameters:
  1. $server_name
  2. $command_str
Related functions:

o2dbs_execute

o2dbs_engine