• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 9 pages
Other

ICT2613 Assignment 3 (Portfolio S01 2019)

Document preview thumbnail
Preview 2 out of 9 pages

ICT2613 Assignment 3 (Portfolio S01 2019)

Content preview

ICT2613 Assignment 3 | Task 1 to Task 6 (Portfolio S01 2019)

Task 1 to Task 6 is being covered.




<?php
include("menu.inc");
echo "<br /><br />";
echo "Student name: John Doe <br>";
echo "Subject name: ICT2613 (Web Programming)<br>";
echo "Semester : S01 2019 <br>";
?>


<!DOCTYPE html>
<html>
<head>
<title>PHP Portfolio</title>
<style>
table,tr,th,td{ border: 1px solid black; }
.frm{ float:left; width: 120px;}
</style>
</head>
<body>
<a href='index.php'>Index</a>|
<a href='task1.php'>Task1</a>|
<a href='task2.php'>Task2</a>|
<a href='task3.php'>Task3</a>|
<a href='task4.php'>Task4</a>|
<a href='task5.php'>Task5</a>|
<a href='task6.php'>Task6</a>
</body>
</html>

, <?php
// connect to the database
$dsn = "mysql:host=localhost;dbname=doctors";
$username = "root";
$passwd = "";
// use exception handling to handle error
try{
$db = new PDO($dsn, $username, $passwd);
} catch(PDOException $ex){
echo "Error occured: " . $ex->getMessage();
}
?>


<?php
include("menu.inc");
echo "<br /><br />";
//////////////////////////////////Task 1////////////////////////////////
$student_name = "Vusi Bhongo";
$num_of_reg_modules = 4;
define("COST_PER_MODULE", 1825);
$total_fee = $num_of_reg_modules * COST_PER_MODULE;
$bursary_amount = 5000;
$outstanding_fee = 2300;
echo "<p>Student name: <b>$student_name</b></p>";
echo "<p>Number of modules registered: <b>$num_of_reg_modules</b></p>";
echo "<p>Cost per module: R<b>" . COST_PER_MODULE . "</b></p>";
echo "<p>Total fee: R<b>$total_fee</b></p>";
echo "<p>Bursary amount: R<b>$bursary_amount</b></p>";
echo "<p>Outstanding fee: R<b>$outstanding_fee</b></p>";
echo "<br /><br />";
echo '<iframe src="task1.txt" height="400" width="1200">Your browser does not
iframes.</iframe>';
?>

Connected book
 image
Joel Murach, Ray Harris Murach\'s PHP and MySQL
Publisher: 2014 ISBN: 9781890774790 Edition: Unknown

Document information

Uploaded on
July 6, 2021
Number of pages
9
Written in
2019/2020
Type
Other
Person
Unknown
$9.35

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
nolwandle
4.0
(11)
Sold
52
Followers
47
Items
14
Last sold
3 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions