dbx_query

dbx_query -- Send a query and fetch all results (if any)

Description

object dbx_query ( object link_identifier, string sql_statement [, long flags])

דוגמה 1 .




It may be any combination of the following constants with the bitwise OR operator ( | ) :

DBX_RESULT_INDEX

DBX_RESULT_INFO

DBX_RESULT_ASSOC

Note that DBX_RESULT_INDEX is always used, regardless of the actual value of flags parameter. This means that the following combinations is effective only:





דוגמה 2 . lists each field ' s name and type




דוגמה 3 . outputs the content of data property into HTML table






הערה :

See also : dbx_connect( ) .