logo

PHP Framework | Lab Report 3

   

Added on  2022-09-08

8 Pages605 Words20 Views
 | 
 | 
 | 
PHP Framework
Lab Report 3
PHP is a coding open source framework for developing web based application. PHP can be
downloaded for free and developers can use it to download form data from the database server.
Coding in PHP is easy as you need to create a php file called .php in the xamp/htdocs and start
xamp server application database system. Xamp htdocs is the directory in C where the web
application servers can be run on and executed correctly.
Step by step procedures
Apache server must be running. The developer will be required to start a xamp server in the
machine. Also MySQL database must be open to allow the data to be retrieved from the database
and allow connection calls to work. The URL for this process to run id in the following status.
We have to use the local host: http/localhost/x_start/ch02
The Output on this is as shown in the following diagram which is as describe below.
The URL is xamp/htdocs/ex_starts/display_discount.php
PHP Framework | Lab Report 3_1

This folder provided will show this error message and some will have to be change on the codes
which link the database and the interface form. When the sample input for part 5 and part 6 the
following results are outputted from the program. The program shows there are some errors by
displaying that this program is under constructions. Hence some codes will need to be changed
The codes which will require to be change include the following;
Part 5
This is because the PHP does not contain the necessary codes so that it can be able to run as
expected. The codes which are needed have been explained and added as shown in the diagrams
attached. So the sample input for the part 5 has been recorded as shown in the diagram below.
The product description the last price and discount percentage were calculated but unfortunately
the page says it is under construction and meaning that there are some functions which are still
missing in the program. The programmer must appropriately insert a function that says the
discount of the product calculated is a shown in the screen shot below.
PHP Framework | Lab Report 3_2

The program that has been run from the above section of the report show that the system is now
fully functional. It is functional because the function codes has been corrected to do play the
relevant parts of the project. Earlier on the system was meant to call another line which is very
irrelevant to the supposed call in the system. This means that every code in the program
inbounded can extend its functionality to other parts of the program.
PHP Framework | Lab Report 3_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents