PHP - MySQL functions

About this set

Created by:

chromedude  on January 22, 2011

Subjects:

functions, php, mysql, web development

Log in to favorite or report as inappropriate.
Pop out
No Messages

You must log in to discuss this set.

PHP - MySQL functions

mysqli_connect()
connect to the MySQL database. takes (database host, database user, database password, database name)
1/8
Preview our new flashcards mode!

Study:

Cards

Speller

Learn

Test

Scatter

Games:

Scatter

Space Race

Tools:

Export

Copy

Combine

Embed

Order by

Terms

Definitions

mysqli_connect() connect to the MySQL database. takes (database host, database user, database password, database name)
mysqli_query() make a query to the MYSQL database. takes (connection information, query)
mysqli_connect_error() gives the error if there is a connection error. takes no arguments
die() kills the attempted connection to MySQL if it does not connect properly. takes the error to display
mysqli_error() gives the error (if any) for the mysqli_query(). takes (database connection)
mysqli_fetch_array() gets the array of the results from the MySQL query. takes (results variable)
mysqli_close() closes the MySQL connection. takes (database connection)
urlencode() encodes text for urls. ex. spaces = %20

First Time Here?

Welcome to Quizlet, a fun, free place to study. Try these flashcards, find others to study, or make your own.

Set Champions

There are no high scores or champions for this set yet. You can sign up or log in to be the first!