Thursday, November 30, 2017

Lab exercise Myphp 29/11/17

Below images are the key in system using Myphp which insert the information in browse and key in the properties of each attribute in structure. We need to start apache and mysql and admin both.
This is the image of dbgui in structure part

This is the image of dbgui in browse part
Next, each time we key in the browse and structure, we need to update the script which name as Dbsql.
This is the dbsql part for browse

This is the dbsql part for structure

Lab exercise PHP 15/11/17

Php needed xampp to open on local host using browser.First we will start xampp control panel.Below are the exercise.
view on source
1.
<!DOCTYPE html>
<html>
<body>

<?php
echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ", "string ", "was ", "made ", "with multiple parameters.";
?>

</body>
</html>

This is file based


2.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
 $cars = array("Volvo", "BMW", "Toyota");
 $arrlength = count($cars);

for($x = 0; $x < $arrlength; $x++) {
    echo $cars[$x];
    echo "<br>";
}
?> 
</body>
</html>
or

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
 $cars = array("Volvo", "BMW", "Toyota");
 $arrlength = count($cars);

for($x = 0; $x < $arrlength; $x++) {
    echo $cars[$x];
echo "x=.$x arrlength=.$arrlength";
    echo "<br>";
}
?> 
</body>
</html>

3.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
function setHeight($minheight = 50) {
    echo "The height is : $minheight <br>";
}

setHeight(350);
setHeight(); // will use the default value of 50
setHeight(135);
setHeight(80);
?> 
</body>
</html>

4.
This using html to create a form and user can key in in a form and display on php.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form action="welcome_get.php" method="get">
 Name: <input type="text" name="name"><br>
 E-mail: <input type="text" name="email"><br>
<input type="submit">
</form>

</body>
</html>



5.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>

Welcome <?php echo $_GET["name"]; ?><br>
Your email address is: <?php echo $_GET["email"]; ?>
</body>
</html>


Chapter 6 Java script 25/10/17

Java script can create alert messages, pop up windows, drop down menu and etc to make interface more interactive.Below was the note been teach and explain by lecturer.Examples stated are explaining and try. 
Below is the first example to insert java script document and display the text.



This is the script that stated at note above which allow us create a clicking button and display text.

 This is the script display java script pop out windows and insert html text.The combination of both script can involved.


>>


>>



>>

Friday, November 3, 2017

Chapter 5 CSS Cascading Style Sheet 18/10/17

This s about CSS that can be added into Html documents.
Below are the note i do while reading.

This is about the introduction of CSS.
This is the CSS Syntax which is selector that involved h1, style block and style values.It also explain about how to insert CSS into Html.There is the external style sheet.

This is the internal style sheet, inline style sheet and multiple style sheet which include all the sheet stated.



Multiple style sheet will combine all the sheet and be write according to style and cascading order.
This the CSS selectors by select elements to apply a declared style.
This is the elements selectors which involved explanation.
Lastly, i have learnt what is CSS, however learning it need go through tutorial and exercise because the CSS script style complicated and need analyse slowly.

Chapter 4 Concept of Client Server ( Client Side Script & Server Side Script) & Internet Application 11/10/17

This the hand write note after i done read all the chapter.
Through this note i learn about client server.The relationship between server and client.

This is about the language are invoked server side and client side programs.The resources they can access from server side and client side are totally different because server can access all user programs while client side can only accessing images and other client side scripts.


The structures can be manipulated.

The speed and predictability of their interactions, scripting languages, how client side and server side script work.
Client-side scripts and server-side scripts

The concept of internet application

Three client tier, middle tier and information tier.It between browser, web server, and database.Browser mean computer, laptop and gadget.Web server mean chrome, internet explorer, and Firefox.

It consists of 3 parts which are form, process, and database.
At the end of study,i realize that the difference between client and server.It involve the relationship and script used.

WWW online quiz 041017

Today feel like do not like to do anything because is a raining day and feeling cool.I would like to write a bit about our quiz for last month as i forgot to talk about it.

As i have mention about the first class, we have been tutor to do a html file about how to insert image and data.The quiz is needed for us to create a html file based and write about our personal details and insert one photo by following what lecturer given.

My results:

I feel disappointing because cannot fulfilled what lecturer needed.The photo supposed to place in the blue frame and the text front difficult to see.However,i have try my best to complete it.

The most funniest things i realize when next coming www class after summit quiz.Lecturer told us that we can use other applications like Adobe dreamweaver CS6 to complete it.However, my basic about using it very weak compare to others.

Lastly,i try to using dreamweaver to complete my task without using notepad,haha.

Addoil and continue for www programming.

The overall

From this course,    STIV 3013 WWW programming, I  have learn about computing language which are html, css, javascript and php. For my und...