PHP Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Assign variable using the HTML form data

A
$VariableName1 = $_POST/GET [‘FormFieldName’];
%VariableName2 = $_POST/GET [‘FormFieldName’]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Connection Parameters

A
$dbserver = ‘ServerName’;
$dbuser = ‘Username’;
$dbpass = ‘Password’;
$dbname = ‘DatabaseName’;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Selection of database

A

$connection = mysql_connect($dbserver, $dbuser, $dbpass);

mysql_select_db($dbname, $connection);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Execute Query

A

$result = mysql_query(SELECT * FROM tableName WHERE $VariableName2 LIKE ‘%$$VariableName1%’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

close connection

A

mysql_close(connection);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly