Chapter 19 -23
COMPLETION1.________________ provides an object-oriented approach to working with a variety of
database servers.ANS:PDOPHP Data Objects2.When you use a prepared SQL statement with PDO, you
need to ________________ the parameters tovariable values before you can run the statement.A...
University of South
Africa
ICT3612-
Assignment-02
YEAR 2022
, Chapter 19 -23
COMPLETION1.________________ provides an object-oriented approach to working with a variety of
database servers.ANS:PDOPHP Data Objects2.When you use a prepared SQL statement with PDO, you
need to ________________ the parameters tovariable values before you can run the statement.ANS:
bind3.After you run a prepared SQL statement with PDO, you can use the ________________ method of
thePDOStatement object to get an array that corresponds with the rows in the result set.ANS:
fetchAll4.When you use exception error mode, PHP throws a/an ________________ object when a PDO
error occurs.ANS: PDOException5.When you use the procedural interface of mysqli, you use
________________ to perform the database operations.ANS: functions6.To execute a dynamic INSERT
statement, you use the ________________ method of the PDO object that connects to the
database.ANS: exec
7.To execute a dynamic SELECT statement, you use the ________________ method of the PDO object.
ANS: queryMULTIPLE CHOICE1.One disadvantage of using mysqli is that ita.doesn’t provide an object-
oriented interfaceb.doesn’t provide for prepared statementsc.can only be used with MySQLd.only
CIST2550 - PHP Programing II
Chapter 20
https://quizlet.com/156326992/cist2550-php-programing-ii-ch20-flash-cards/
When you use PHP to format the data that's entered into a content management system, you
add HTML tags to the data wherever necessary
Include files may include all but one of the types of files that follow. Which one is it?
controller
To set the include path for a web site, you can use the
set_include_path function
For a web site that implements the MVC pattern, there is usually one controller file
for each application
When you develop a content management system, you can use PHP's string-handling functions
to parse the user entries and apply the _____ for formatting the content in the browser.
HTML
The include _____ for a PHP application tells where to look for the files specified by the include
and require functions.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TopscoreG. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R99,01. You're not tied to anything after your purchase.