Question 1a describe how the web database architecture

Assignment Help PHP Web Programming
Reference no: EM13349614

QUESTION 1

(a) Describe how the Web database architecture operates while accessing a PHP script. Illustrate your answer using a diagram.

(b) What is the difference between $message and $message?

(c) Explain each of the following string functions. Illustrate your answer with an example.

(i) strrev()

(ii) explode()

(iii) stristr()

(d) Write a PHP script to read a positive integer, n, from an input text box with the name "txtnum" and to calculate and print the value of 1 + 2 + ... + n.

QUESTION 2

(a) How do you define a constant in PHP?

(b) List the different types of errors in PHP.

(c) Exceptions are used to change the normal flow of a script if a specified error occurs. Describe how the Try, Throw and Catch statements are used to handle an exception.

(d) Outline the differences between mysql_fetch_object() and mysql_fetch_row().

(e) Write PHP script that allows you to fetch information entered in the two text box fields namely: txtStudent for student's name and txtClass for class name and finally appends the information into the file student.dat Your program must also respond by printing a welcome message as follows:

Welcome, x where x is the student name.

QUESTION 3

(a) Show how you can achieve the following in PHP:

(i) a page reloading itself

(ii) causes a web page redirection.

(b) Describe any two different types of arrays as used in PHP programming.

(c) Give two methods that might be used to control sessions in a web based application. Explain the shortcomings of each method.

(d) Write extract codes to demonstrate how PHP allows you to:

(i) create a Session

(ii) retrieve a Session value

(iii) delete a Session.

QUESTION 4

(a) List four benefits while using a relational database such as MySql.

(b) Consider a server with the following settings:
servername: localhost
username: donald
password: jerry
How does PHP allow you to open a connection to a MySQL database, ensuring that the script returns appropriate error message.

(c) Referring to Question 4(b), list the PHP statements that allows you to

(i) create the database named VideoClubDB

(ii) create the database table tblMovie

(iii) add the three fields: MovieName, MovieDirector and MovieType

(d) Referring to Question 4(b) and 4(c), write extract codes to display all the records from the tblMovie table and the results sorted by the MovieName column

Reference no: EM13349614

Questions Cloud

Question show the amount if any that josh will deduct as : question show the amount if any that josh will deduct as ordinary and essential business deductions in each of the
Question 1 read the case study attached carefully and : question 1 read the case study attached carefully and answer the questions which follow a analyse why monty failed in
Question 1 for each of the subsequent taxpayers evaluate 1 : question 1. for each of the subsequent taxpayers evaluate 1 the income tax liability 2 taxable income before credits or
Case studychanging ge real estate with innovative : case studychanging ge real estate with innovative data-driven decision support adapted from power d. j. transforming ge
Question 1a describe how the web database architecture : question 1a describe how the web database architecture operates while accessing a php script. illustrate your answer
Question 1 recent business and economic conditions have : question 1 recent business and economic conditions have urged leaders to accept a more transactional approach to lead
Question donovan company received a bank statement for the : question donovan company received a bank statement for the month of september 2012 which indicates a balance per bank
Question 1carefully read attached cover expose and answer : question 1carefully read attached cover expose and answer questions which follow-a unless leaders have thought through
Questiona after initial recognition for an entire class of : questiona after initial recognition for an entire class of property plant and equipment an entity is required to choose

Reviews

Write a Review

PHP Web Programming Questions & Answers

  Need an php script that redirect the visitor to url

Need an php script that redirect the visitor to url or dir based on their ip address if the visitor from Germany -

  Simple php script to parse out custom lines

Simple php script to parse out custom lines from an log file and echo - the script should echo it after convert it from hex to normal text

  Design a phishing pages

An assignment to design a Phishing Pages for a popular website "Apple" Phishing pages like this first page:

  Which of the following jsp expressions is valid

A JSP expression can contain any Java expression that evaluates to a String object, Java object, primitive type, primitive type or Java object

  Define a constructor for class game that takes the initial x

Define a constructor for class Game that takes the initial x and y positions of the player as parameters and creates and initialises the player, dot1, dot2 and dot3 fields.

  Show the accessibility and usability of website

The webpage must have several menus about country Azerbaijan such as "About Azerbaijan" "History" "Geography" "Landscape" and "Accessibility" menu.

  Dynamic page which receive a in put

Write a program in php to generate a dynamic page which receive a in put and print it on the screen

  List the item ids and their location description

In this assignment youare required to use PHP program to connect to the XAMPP web server. You will then create a database which will include tables with records.

  Xhtml form that collects a name

Create an XHTML form that collects a name, address, phone number, and zip code. The phone number must be input in the format of ddd-ddd-dddd and the zip code must be in the format of ddddd-dddd.

  Develop a dynamic website open university

Develop a dynamic website Open University

  The average score and all the scores above the average score

print all the scores below the average score and all the scores above the average score in php.

  Produce a description of the modules

Provide a brief description within comment tags at the bottom of your HTML5 file of some of the ways you have separated content and presentation in your assignment.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd