Wednesday, December 27, 2017

The overall

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

For my understanding, html use to edit the interface of website include tables and banners as well as buttons. CSS is use to edit the interface such as fonts, color, background color and others of buttons but also the drop down menu and radio buttons. For, java script, it is used as functions of the button include if...else. Php is the most difficult part for me to learn as it used to connect database systems which is myPhpAdmin by using xampp. The coding by using <$php> and call out by using local host , username, password, dbname.

I would like to thanks my lecturers and friends who been help me for so long  on completing the assignments and projects.

The difficulty that i faced on this courses is the way i learn how to connect database.I have use to snap photo and ask my frens to help as to follow the step of lecturers.

Thanks and bless my coursemate can get flying color on their results.

How to create table by connecting to myPHPadmin 6/12/2017

This class we have study that how to connect myphpadmin to Dreamweaver by using local host.Below image explaining how to keyin table by using <$php>.Then we learn how to keyin the contents by call out using $con= mysql_connect



This is the data we try to keyin follow by tutorial of lecturers.

 Based on the class lab test, i have learn how to connect local host by using Xampp.I connect using appache and type coding into Dreamweaver in php form.First, as we have done by last class to keyin the data of guests and room.Now we can retrieve out the data .




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.

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...