Sunteți pe pagina 1din 2

PHP & mySQL Essentials

Study online at quizlet.com/_6bl1o


1.

______ scope refers to any variable that is defined outside of any function A _______ is a local variable whose value is passed to the function by the calling code A variable declared within a PHP function becomes ____ and can only be accessed within that function. An 'id' should be designated as a ______ ____ with ___________ enabled Another name for parameter Block comment synax

Global

18.

Make sure you do this to your Excel information before you convert to CSV file

2.

parameter

3.

Local

Make sure there are no commas in the entire sheet; if they are there, use global find/replace to make them something else you can change back to commas later using PHP camel case "PHP: Hypertext Preprocessor" mysqli_connect . open loosely server-side <? ?> //blah blah blah scope

19. 4.

primary key ... auto increment argument /* blah blah blah */ strlen import fields

myFlavor is an example of PHP PHP command name to tie in to a database PHP concatenation operator PHP is _____ source software PHP is a ______ typed language PHP is a _________ language Shorthand delimiter for PHP code segments Single line comment syntax The _____ of a variable is the portion of the script in which the variable can be referenced The 4 parameters, in the proper order, needed to connect to a PHP database The default delimiter in mySQL that must be changed to bring in Excel CSV information This is a character you can place before a PHP/mySQL command that will suppress warnings on a user's screen if there are connection problems to a database. It should NOT be used in development (you want to see your warnings!) but it should be used for live sites (so as not to scare your users). To create a user in PHPmyAdmin, to to this place To take an Excel file to a mySQL database, you must first convert it to a _____ file True or false: PHP is considered a scripting language

20.

5. 6.

21.

22. 23. 24. 25. 26.

7.

Built-in function for finding the length of a string Button you push in mySQL to bring in external data Columns in Excel are analogous to _____ in mySQL Command to print information on a web page CSV Delimiter for PHP code segments Every function must have

8.

9.

27.

10.

echo Comma-Separated Values <?php ?> a parameter list delimited by parentheses, even if that list is empty xlsx php 0 Explicit data types are not required

28.

11.

29.

12.

host, userName, password, databaseName ;

13.

30.

31.

14. 15. 16.

Extension for an 2010 Excel file Extension for PHP files Given: echo strpos("ABCD", "A"); What is the resulting output? loosely-typed

17.

32.

PHPmyAdmin Home Page>Privileges CSV

33.

34.

true

35. 36. 37. 38. 39. 40. 41. 42. 43. 44.

True or false: PHP strings may be delimited by either double or single quotes True or false: PHP variables are case-sensitive True or false: Spaces are acceptable in PHP variables Type this word in the address bar of any browser to get to phpMyAdmin Typical mySQL datatype for an 'id' URL Valuable platform integrating PHP and mySQL Variables are _____ for storing information What is mySQL? When a table's structure is being viewed, this shows that a field is a primary key Write a correct PHP statement that creates a variable called 'myFlavor' with the value of 'vanilla'

true true false localhost INT Uniform Resource Locator XAMPP containers A database server The name of the field is underscored $myFlavor = "vanilla";

45.

S-ar putea să vă placă și