Tuesday, 26 December 2017

Week 13 in the class (13 December 2017) - Wednesday

Today madam change the lab class lesson to the lab quiz lesson. This is the second lab quiz of us.

Below is the result of the quiz that i have done.









Week 12 in the class (6 December 2017) - Wednesday

In today class, madam ask us to try to connect the database to the server with use PHP language.

Image in below are the result that successfully connected.



Below are the coding of the connection with the server.



Week 11 in the class (29 November 2017) - Wednesday

In today, our class is continue with the task from last week.

Below is the image of the database in PHPMyAdmin:



Week 10 in the class (22 October 2017) - Wednesday

In today lab class, we still continue to the PHP lesson. In this time, madam ask us to create a PHP form validation example. We refer to the code which from W3school and edit it by using Adobe Dreaweaver CS6.

Steps to create a basic secure PHP form such as:
  1. Create a simple form.
  2. Add validation to the form.
  3. Make input fields required and create error messages if needed.
  4. Validate the input data.
  5. Prevent the form from emptying all the input fields when the user submits the form.

PHP Validation Form
Week 9 in the class (15 November 2017) - Wednesday

After the last class that madam taught us about what is PHP and we also have some concept of PHP. So today class, madam give us some exercise about PHP.

Below is the work that i have done.
Form Result


PHP 1

PHP 2

PHP 3

Welcome Result



Week 7 in the class (1 November 2017) - Wednesday

In today class, madam taught us about what is PHP. Today class have no any special thing, it just a normal lesson of learn about what is PHP.

What is PHP?

PHP is a server side scripting language. that is used to develop Static websites or Dynamic websites or Web applications. PHP stands for Hypertext Pre-processor, that earlier stood for Personal Home Pages.

What is a PHP File?

  • PHP files can contain text, HTML, CSS, JavaScript, and PHP code
  • PHP code are executed on the server, and the result is returned to the browser as plain HTML
  • PHP files have extension ".php"

What Can PHP Do?

  • PHP can generate dynamic page content
  • PHP can create, open, read, write, delete, and close files on the server
  • PHP can collect form data
  • PHP can send and receive cookies
  • PHP can add, delete, modify data in your database
  • PHP can be used to control user-access
  • PHP can encrypt data
With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.


Why PHP?

  • PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP supports a wide range of databases
  • PHP is free. Download it from the official PHP resource: www.php.net
  • PHP is easy to learn and runs efficiently on the server side

Exmple of PHP

<!DOCTYPE html>
<html>
<body>

<?php
echo "My first PHP script!";
?>


</body>
</html>
Week 6 in the class (25 October 2017) - Wednesday

In this week, madam teach us about JavaScript(JS). JavaScript is a programming language that allows web developer to implement complex things on web pages.

Below is the exercise of JavaScript that we done today.

 Test 1

Test 2

Test 3

Test 4

Test 5

Test 6

Test 7

Week 13 in the class (13 December 2017) - Wednesday Today madam change the lab class lesson to the lab quiz lesson. This is the second lab...