Shared Flashcard Set

Details

PHP
PHP Flash Cards
12
Computer Science
Professional
03/31/2013

Additional Computer Science Flashcards

 


 

Cards

Term
Begins PHP Code
Definition
Term
Ends PHP Code
Definition
?>
Term
Prints a string as text/integer to screen
Definition
echo
Term
Putting variables in double quotes prints them literally. True or false?
Definition
True
Term
The two methods of sending form data to the server
Definition
Get and Post
Term
The constant variable used to fetch data from a POST
Definition
$_POST
Term
Write the code to echo the word "PUPPY"
Definition
echo 'Puppy';
Term
Write the code to set the variable $host_name, to data from a form named "hostname"
Definition
$host_name = '$_POST['hostname'];
Term
Write the code to concatenate the variable $dog before the string "is a dog"
Definition
echo $dog . 'is a dog.';
Term
What is the MYSQL command to connect to a database
Definition
mysqli_connect
Term
What is the MYSQL command to put data into a database
Definition
INSERT
Term
Write a mysql INSERT command in blank, putting data into two columns
Definition
INSERT INTO table_name (column1, column2) VALUES ('value1', 'value 2');
Supporting users have an ad free experience!