Pelzini

This is the code documentation for the Pelzini project

file /viewer/database_mysql.php

Namespace: viewer

Available since:

View source


The MySQL wrapper functions

Authors

Functions

db_affected_rows

Returns the number of rows affected by the last MySQL query that was executed

db_connect

Connects to the MySQL database

db_escape

Escapses a string for use by the MySQL database

db_fetch_assoc

Fetches a MySQL result set as an associative array

db_insert_id

Returns the last unique ID generated by a query

db_num_rows

Returns the number of rows in a MySQL result set

db_query

Makes a query to the MySQL database

db_quote

Quotes a string as nessasary for use by hte MySQL database
The result will be different depending on the type of the input.
 - a number will be left as is
 - a string will be quoted
 - a null value will be returned as NULL