PHP Built-In Functions

PHP Built In Functions

Here is a list of common PHP fuinctions and their usage.

Execute a mysql query
mysqli_query()

Connect To MYSQL Database
mysqli_connect()

Fetch arrays from Database Using a Select
mysqli_fetch_assoc()
mysqli_fetch_array()

Fetch Object from Database Using a Select Query
mysqli_fetch_object()

Get the number of rows from a query
mysqli_num_rows()

The two functions add slashes to special characters when inserting data into a database. "Never trust the data being inserted'.
addslashes()
mysqli_real_escape_string()