Section 1

Preview this deck

mysqli_error

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

4 years ago

Date created

Mar 1, 2020

Cards (88)

Section 1

(50 cards)

mysqli_error

Front

When using mysqli, the ______ function can be used to access a textual description of the most recent error that occurred on the server.

Back

primary key

Front

A table's ______ is used to uniquely identify each item in that table.

Back

NOT NULL

Front

To ensure a column value has a value, when creating the column you must add _____________

Back

mysqli_real_escape_string

Front

Function used to escape special characters in a string for use in an SQL statement

Back

mysqli_select_db

Front

Function used to select the default database to be used when performing queries against the database connection

Back

AUTO_INCREMENT

Front

To have a database column default to the next integer in an ongoing sequence, add ______ quantifier to the columns definition.

Back

Case Sensitive

Front

Although the entire language is not, we need to treat SQL as if it is ________ ________

Back

result set

Front

When executed successfully, the SELECT statement generates a _______, which is conceptually similar to a virtual table in that it can be treated as if its a table when it doesn't actually exist in the database.

Back

CHAR(n)

Front

This SQL datatype allows a input of a specified length where the length is the parameter

Back

database

Front

The overall container for a collection of MySQL data used to represent entities

Back

BLOB

Front

This data type is binary and allows for up to 64kb of data and is typically used for passing images or GIFS

Back

Signed

Front

This word goes after a DOUBLE variable and specifies the value can be below 0. This word will cause the range to be -2.15e+9 to 2.15e+9

Back

daemon

Front

The general name server administrators use to describe server programs that run all day every day without human intervention is _____.

Back

DESCRIBE

Front

Command used to see a database's field formats

Back

purpose

Front

Part of an organized database, __________ is what determines requirements

Back

LOAD DATA

Front

A SQL command that instructs the client to read a text file from disk and insert the data it contains into a database table.

Back

mysqli_query

Front

Function used to perform a query on the database

Back

DROP TABLE IF EXISTS

Front

Command to delete a table if it already exists

Back

column

Front

the name of a field within a row

Back

Unsigned

Front

This word goes after a DOUBLE variable and specifies the value can't be below 0. This word will cause the range to be 0 to 4.29e+9

Back

rows columns

Front

A database table is composed of one or more _____, each of which is composed of one or more ______.

Back

case-insensitive

Front

SQL commands and keywords are _______. The recommended style is uppercase.

Back

TIMESTAMP

Front

To have a database column default to the current date and time at which a row was created, set the datatype of that column to ________.

Back

table

Front

A subcontainer within a database that stores the actual data

Back

natural join

Front

In a relational database when two or more tables are joined together on the basis of common data in shared columns it is called a _________ __________

Back

mysqli_connect

Front

Function used to open a connection to the MySQL server. It takes parameters for host, username, and password.

Back

\c

Front

Canceling a line of input on the command line

Back

VARCHAR(n)

Front

This SQL datatype allows a input up to a certain length where the max length is the parameter

Back

;

Front

Punctuation used by MySQL to separate or end commands

Back

predictability

Front

Part of an organized database, __________ is what is needed to allow location to be easily identified

Back

USE

Front

Command used to switch to a database

Back

ENGINE MyISAM

Front

_____ tells MySQL the type of database engine to use for the creation of a table.

Back

SELECT * FROM

Front

Command used to show all data in a table

Back

HELP CONTENTS

Front

command used to get assistance with SQL Statements

Back

sanitize

Front

The process of eliminating potentially problematic characters from a value prior to using that value within a program is commonly called ________.

Back

API

Front

In order to communicate with a MySQL server from within our PHP program we use mysqli, which is a collection of routines that are installed as a PHP extension and collectively (and generally) known as an _____.

Back

regularity

Front

Part of an organized database, __________ standardizes structure

Back

SOURCE

Front

A SQL command that instructs the client to read a text file from disk and execute its contents as if they were typed interactively by the user.

Back

WHERE

Front

To control which rows of a table an UPDATE statement will effect, you should add a ______ clause.

Back

UNIQUE

Front

To ensure a column value does not have the same value as another column in the same table you must add ________

Back

virtual

Front

The results of a join action can be considered an example of a _____ table

Back

case-sensitive

Front

Table names are ____ on Linux and OSX, but the opposite on Windows. The recommended style is lowercase for tables.

Back

sorting indexing

Front

When it comes to database predictability ___________ rows only allows for one row to be searched at a time and is time consuming. The preferred method to ensure predictability is _________ rows.

Back

CRUD

Front

The conceptual model upon which SQL is constructed is commonly referred to as the ______ model.

Back

row

Front

A single record within a table, which may contain several fields

Back

purpose predictability regularity

Front

In order to be considered a database, a collection of data must possess the properties of organization and _____. The property of organization is generally achieved through ensuring data demonstrates both ______ and _______.

Back

redundancy

Front

When designing a database, it is generally desirable to avoid _____, which is the needless repetition of values stored in the tables.

Back

HELP

Front

command used to get assistance with SQL commands

Back

SHOW

Front

command used to display all databases

Back

EXIT or QUIT

Front

command used to end SQL session

Back

Section 2

(38 cards)

session_destroy()

Front

To end a session you use this PHP code

Back

SELECT

Front

This SQL command can include calculated functions as well as column names

Back

LIMIT

Front

This SQL command returns only a set number of results and can include a starting point and length or just a length

Back

Browser receives cookie and sends it with every request

Front

Third step in implementing cookies

Back

JOIN ON

Front

This SQL command will combine two tables based on the specified column

Back

delete refuse

Front

The biggest issues with cookies are that users can ________ or ________ them

Back

header()

Front

PHP code to insert HTTP header into server response, can be used to redirect user and prevents explicit reloads/insertions

Back

Active/Inactive

Front

Because relational databases can become complicated, instead of deleting rows we typically add a(n) ___________ column

Back

more

Front

Sessions are ________ secure than cookies

Back

mysqli_fetch_row()

Front

Retrieve next row of result set in a numerically indexed array of columns and returns false when no more rows

Back

Query

Front

Formalized question that produces a result set

Back

expiration to a past date

Front

to delete a cookie you must use setcookie() and set the ____________

Back

session_start()

Front

This php code is required before any other output to begin a session

Back

Connect to SQL Server as authorized user

Front

PSEUDO: First step of using SQL with PHP, involves 1 sqli command

Back

mysqli_fetch_array()

Front

Retrieve next row of result set in an array of columns indexed by both keys and integers and returns false when no more rows

Back

NOT NULL, UNIQUE, KEY

Front

Setting a column as a PRIMARY KEY gives the column the same attributes as _______ _______ ________

Back

session_regenerate_id()

Front

To avoid session fixation you can use this php command

Back

Send SQL statement

Front

PSEUDO: Fourth step of using SQL with PHP, involves 1 sqli command

Back

PHPSESSID

Front

This cookie can be used even if the user has disabled or refused cookies

Back

name, value

Front

required parameters for cookies

Back

Hidden field

Front

A tool used to maintain state over time that is embedded in forms

Back

mysqli_fetch_assoc()

Front

Retrieve next row of result set in an associated array (indexed by keys/corresponding column name) and returns false when no more rows

Back

Stateless Protocol

Front

Because HTTP is a _________ _________ many tools are needed to authenticate and track users

Back

cookie

Front

A tool used to maintain state over time that places variables on a clients machine

Back

4kb

Front

Maximum size of a cookie

Back

session

Front

A tool used to maintain state over time that contains user specific arrays and is located in a super global array

Back

Text File

Front

A tool used to maintain state over time that contains small, non-secure data

Back

setcookie()

Front

code used to start a cookie

Back

Establish desired DB

Front

PSEUDO: Second step of using SQL with PHP, involves 1 sqli command

Back

salt, hash function

Front

To prevent users passwords from being stored you should add ________ to the password and apply a _______ ________

Back

Retrieve results

Front

PSEUDO: Fifth step of using SQL with PHP

Back

IP address

Front

To avoid session hijacking you can add the users _______ ______ to the session

Back

Browser issues request with filename and server name

Front

First step in implementing cookies

Back

GROUP BY

Front

This SQL command will return output showing information about a specific group of data

Back

Incorporate SQL results as PHP data

Front

PSEUDO: Sixth step of using SQL with PHP, using a while statement on an array and 1 sqli command

Back

database

Front

A tool used to maintain state over time that contains complex secure data

Back

Web server sends header with content type, cookie and webpage

Front

Second step in implementing cookies

Back

Compose SQL statement

Front

PSEUDO: Third step of using SQL with PHP, involves sanitization

Back