db_bibivu is a simple MySQL database access wrapper. It provides functions for connecting to a MySQL database server, selecting the database to access, executing queries, retrieving query results rows in arrays, executing a query to return a single result row in a single call, etc. The class may optionally generate a log of the executed queries. When a query fails, it may send a warning message to a given site administrator email address.
| Tags | Database Internet Web Dynamic Content Software Development Libraries php classes |
|---|---|
| Licenses | BSD Original |
| Operating Systems | OS Independent |
| Implementation | PHP |
Recent releases


Changes: This release changes the functions "query" and "query_first", and adds a second parameter, "$record_type". It adds the function data_seek (mysql_data_seek; if the second parameter is not passed, it will position on a random record), a "set_default_result_type" parameter (this will change the default $result_type for the query function), a "close" function to close a MySQL connection, and a "connect_first_use" parameter (to allow the class to connect only when it is used the first time; this will avoid connection to the database when no queries are executed).


Changes: This release fixes the variable db_accesses to be internal and not global and fixes email sending to send the whole current page and not only the script name.


Changes: This release adds mysql_num_fields, mysql_fetch_field, mysql_fetch_row. It adds trigger_error when MySQL generates an error, which will allow the programmer to manage the error in a better way.


Changes: This version was adapted to work with PHP4 and PHP5 without error messages (E_STRICTS, or E_WARNING, or E_NOTE).


Changes: This release adds a mysql_escape_string function as $class_name->escape_string($string);.