亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美va在线观看_成人黄网大全在线观看_日韩精品一区二区三区中文_亚洲一二三四区不卡

代寫COMPX222、代做Java/SQL編程語言

時間:2024-06-08  來源:  作者: 我要糾錯



COMPX222 – Assignment 3: 
Database Driven CRUD Application (30%) 
 
Deadline: Friday 21st June by 23:59 (at the latest) 
 
Task 
 
In this assignment, you will build a web application for storing and retrieving people’s 
contact information. This will be a database driven CRUD application, allowing users to 
Create, Read, Update and Delete contacts from the database. 
 
The application will have: 
• A page for displaying all the contacts stored in the database 
• A page for displaying detailed information about individual contacts. 
• A form enabling users to input new contacts, including details such as name, phone, 
email and address. 
• An additional form allowing users to modify the details of existing contacts. 
• Functionality that enables users to delete a contact from the database. 
 
To achieve this, you will use PHP to dynamically generate page content, validate the form 
data, and interact with the database. 
 
You are free to create any design you want for your application; however, ensure that it 
meets all of the requirements specified below. 
 
Goal 
 
The goal of this assignment is to demonstrate your ability to use server-side PHP scripts to 
dynamically generate content, process and validate HTML form data, and interact with a 
MySQL database. You are also expected to demonstrate your ability to build a responsive 
web application with a design that is both user-friendly and consistent across all pages. 
 
Requirements 
 
 1. Your application must consist of the following pages: index.php, details.php, 
add.php, update.php. 
2. The index.php page serves as the homepage and should display all contacts in 
alphabetical order. You do not need to show all of the contact information for each 
contact; you may choose to show the name, email and phone number, but not the 
address. Clicking on a contact should redirect the user to the details page for that 
contact. 
3. The details.php page displays a single contact and should display all of the 
information for that contact. This page also includes a delete button and a link to the 
update page, where that contact can be edited. 4. The add.php page contains a form where users can add a new contact. This form 
should be a POST request and it should contain at least the following inputs: Name, 
Phone, Email, Address. After the form has been submitted and the contact 
successfully added, the page should redirect to user to either the homepage or the 
details page for that contact. 
5. The update.php page contains a form where users can update the details of an 
existing contact. This form should also be a POST request and it should be possible to 
update any of the fields, e.g. Name, Phone, Email, Address. When the user visits this 
page, the inputs should be pre-populated with the data for that particular contact. 
For example, the Name input should already contain the name of the contact. To 
achieve this, you will first need to retrieve the contact from the database using its ID. 
After the form has been submitted and the contact successfully added, the page 
should redirect the user to either the homepage or the details page for that contact. 
6. Form data must be validated with PHP. Invalid data should be reported with 
appropriate error messages, styled to be recognizable as errors. This validation 
should only occur when the user submits the form, not when moving between 
inputs. 
7. The following validation should be applied to both the add and the update form: 
a. The Name field cannot be empty. 
b. Either the Phone, Email, or both must be provided; leaving both empty 
should trigger a validation error. 
8. Users must be able to delete a contact from the database. This can be achieved via a 
Delete button on the details page. After a contact has been successfully deleted, the 
user should be redirected to the homepage. 
9. All pages of your web application must be responsive. This means they should 
usable on different screen sizes and devices. You can use CSS grid, flexbox and media 
queries to achieve this. 
10. All pages should have a common header and footer. You should implement this by 
creating a single header.php and footer.php file and using PHP includes to include 
them on every page. 
11. The user must be able to navigate to each of the pages via the UI. In other words, 
you must provide links to the add form, details page, update page, and a link to 
return to the index page. 
12. You must add comments to describe the main parts of your PHP, HTML and CSS 
code. 
 
Setup (Getting Started) 
 
You have been provided with the skeleton code for the application on Blackboard: 
Assignment3-Skeleton.zip. This code provides you with the files for starting the project as 
well as the code for connecting to the database. You should download and extend this code 
rather starting from scratch. 
 
You have also been provided with an SQL file to create the database and the table: 
assignment3.sql. You should use this file in phpMyAdmin to get the database running on 
your computer. Note that one example contact has been provided in the SQL file.  
Setup Instructions 
 
 1. Download Assignment3-Skeleton.zip and unzip it. 
2. Rename the extracted Assignment3-Skeleton folder to 320XXXX-Assignment3 (where 
320XXXX is your student ID). 
3. Move the 320XXXX-Assignment3 folder to your XAMPP htdocs folder. 
4. Download the assignment3.sql file. 
5. Open phpMyAdmin in your browser: http://localhost/phpmyadmin. 
6. Navigate to the SQL tab. 
7. Copy the entire content of assignment3.sql and paste it into the main query window. 
8. Click the Go button in the bottom right of the query window. 
9. Refresh phpMyAdmin by clicking the circular arrow underneath the phpMyAdmin 
logo. You should now see the compx222-assignment3-2024 database in the 
database list. 
10. Open your browser and visit: http://localhost/320XXXX-Assignment3/index.php 
(replace 320XXXX with your student ID). 
11. If everything has worked, you should see a message saying: "You are now ready to 
get started!" 
12. Open the 320XXXX-Assignment3 folder in your preferred code editor and start 
extending the code to build your application. 
 
When building your application, try to implement it one function at a time. Start by 
displaying all the contacts on the homepage. Once this is working, move on to displaying an 
individual contact on the details page, then adding a contact, then updating a contact, and 
finally deleting a contact. Make sure each function works before moving on to the next. If 
any errors occur, try to understand the cause, and fix them. 
 
Restrictions 
 
The purpose of this assignment is to demonstrate your ability to use PHP, MySQL, HTML and 
CSS. Therefore, the following restrictions apply: 
 
• DO NOT copy and paste large blocks of PHP, SQL, HTML or CSS from other sources. 
• DO NOT use visual design tools (such as Dreamweaver) that generate the HTML/CSS 
code. 
• DO NOT use third-party frameworks or libraries (for PHP, HTML or CSS). This includes 
frameworks such as Laravel and Bootstrap. 
• DO NOT use the HTML required attribute as this could prevent some of your PHP 
validation being triggered. 
• DO NOT use any JavaScript for this assignment. 
Guidelines 
 
Project Organisation 
 
Organize your project appropriately. In the root folder, include PHP files for your 
application's pages (add.php, details.php, index.php, update.php), a 'css' folder for CSS files, 
an 'img' folder for images, a 'config' folder for PHP code connecting to your database 
(db_connect.php), and a 'templates' folder for header and footer PHP files. The 
db_connect.php, header.php and footer.php files should be included in the PHP files for 
each of your pages. Most of this structure has been provided for you in the starter project 
code: Assignment3-Skeleton. 
 
Your folder structure should look like this: 
 
/root 
 /config 
 db_connection.php 
 /css 
 style.css 
 /img 
 image1.jpg 
 … 
 /templates 
 footer.php 
 header.php 
 add.php 
 details.php 
 index.php 
 update.php 
 
Filenames (including images) should only contain ASCII characters, so you should avoid 
using Chinese characters. This is to prevent problems when zipping/unzipping. 
 
Images 
 
Do not use absolute filenames for image and videos because if you do, they will only work 
on your computer. All links to images and videos should use relative filenames. 
 
Correct (relative): 
 
src="img/image1.jpg" 
 
Incorrect (absolute): 
 
src=“/Users/alex/Documents/your-website/img/image1.jpg" 
src=“C:your-websiteimgimage1.jpg" 
 All images should be appropriately sized for the web and be no larger than they need to 
be. Large image files can significantly impact page load times, leading to a poor browsing 
experience for users. 
 
CSS 
 
You must use an external CSS file (style.css) for all of your CSS code then include it in your 
HTML file using a <link> tag inside the <head>. Do not include any CSS code in the HTML file 
(either inline in the HTML elements or in style tags at the top of the HTML page). 
 
Correct: 
 
<head> 
 <link rel="stylesheet" href="css/style.css"> 
</head> 
 
Incorrect: 
 
<p style="color: green"> 
 
<style> ... </style> 
 
HTML 
 
ALL text must be enclosed in the correct HTML tags. Do not leave any un-tagged text in the 
HTML file. All HTML must be valid HTML5 and you should use semantic HTML5 elements 
where appropriate. 
 
PHP 
 
Use meaningful variable and function names. This will make it easier to read your code and 
keep track of what each part does. 
 
Each page will contain some content that needs to be generated dynamically on the server 
via PHP. Each page should, therefore, be a .php file rather than an .html file. Most of the 
page will be HTML markup, but PHP code segments will occur at appropriate points and be 
placed between <?php and ?> tags. 
 
PHP scripts can redirect the browser to other pages by setting the HTTP Location header 
using the header function. For example, header('Location: index.php'); redirects to the 
index.php page. 
 
MySQL 
 
You can test your queries in phpMyAdmin (using real values) to make sure they are correct. 
 
All interactions with the database will be done via PHP. Make sure you use the correct PHP 
MySQLi functions to achieve this. 
  
 
What to Submit 
 
All your material for this assignment must be submitted using Blackboard. 
 
 1. Create a folder with a name of “320XXXX-Assignment3,” where 320XXXX is your 
student ID. You should end up with a single ZIP file called 320XXXX-Assignment3.zip 
containing your website files inside (see the Project Organisation section for details). 
Use only ASCII characters for filenames (no Chinese characters). 
2. Submit the ZIP archive via Blackboard. On the course page you will find a section 
‘Assignments’ with a link entitled ‘Assignment 3 Submission’ (or similar). Follow the 
link and upload your ZIP file. 
 
No other mechanism for submission will be accepted. 
 
NOTE: your site should work 'as is' when unzipped from your ZIP archive into the Apache 
htdocs folder, without any modification or changes to the database credentials. You should 
check that this is the case by unzipping your archive and testing the site yourself. 
 
Assessment 
 
Your mark for this assignment contributes to 30% of your overall grade. Zip your website up 
into a single file and submit it on Blackboard before the due date. The marking will be as 
follows: 
 
HTML Markup 
Including structure of the HTML document, appropriate form elements, attributes 
and input types 
15% 
CSS Styling 
Including overall style and consistency, usability, responsiveness, and use of 
selectors 
15% 
PHP 
Including validation, displaying or error messages, use of functions and appropriate 
techniques, absence of errors and warnings, all required pages included 
40% 
MySQL and PHP interaction 
Including support for each CRUD operation, properly structured queries, correct use 
of PHP MySQLi functions 
20% 
Project Structure 
Including file and folder organisation, file naming and external CSS 
10% 
Total 100% 
 
You will lose marks if you break any of the restrictions or guidelines. 
 
The assignment is INDIVIDUAL work. You are not allowed to work with other students or 
copy code from other sources and you must not share your code with any other student. If 
any assignment description is not clear to you, please ask your teachers. 

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




















 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:program程序代做、代寫Python/C++編程設計
  • 下一篇:代做COMP 636、Java程序設計代寫
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    黄色网址在线免费| 国产xxxxx18| 欧美区一区二区三区| 亚洲成a天堂v人片| 欧美性精品220| 欧美综合欧美视频| 欧美二区在线观看| 欧美一级生活片| 999www人成免费视频| www.成人69.com| 在线观看视频你懂的| 九九在线视频| 在线观看免费视频你懂的| 日本精品600av| 91av一区| 欧美日韩一区二区三区四区不卡 | 亚洲黑人在线| 理论片一区二区在线| 日韩电影免费网站| 亚洲福利精品| 国产精品99久久久久久似苏梦涵 | 久久超级碰碰| 婷婷亚洲五月色综合| 亚洲综合精品| 成人午夜激情在线| 亚洲欧美一区二区三区国产精品| 欧美日韩亚洲激情| 日韩欧美高清dvd碟片| 天堂资源在线观看| 91高清在线观看视频| 欧美黑人疯狂性受xxxxx野外| 欧美a级大片在线| 日韩中文首页| 蜜桃久久av一区| 久久天堂av综合合色蜜桃网| 亚洲电影在线免费观看| 欧美成人a视频| 国产精品无码2021在线观看| 深夜av在线| 亚洲婷婷丁香| 日本欧美加勒比视频| 久久亚洲二区三区| 在线一区二区三区| 中文字幕高清在线观看| 国产夫妻在线| 欧美激情久久久久久久久久久| 在线精品亚洲| 国产午夜精品久久久久久免费视 | 一区二区三区高清| 精品人伦一区二区色婷婷| 国产精品一二三区视频| 精品国产黄a∨片高清在线| 99久久激情| av在线一区二区三区| 欧美视频第一页| 色视频www在线播放国产| 亚洲美女久久精品| 正在播放日韩欧美一页| 2021国产精品久久精品| 欧美剧在线免费观看网站| 成人高清免费在线播放| 国产一区二区三区| 日韩电影网1区2区| 亚洲一区二区综合| 在线欧美成人| 四虎国产精品永久在线国在线| 在线成人亚洲| 亚洲精品美国一| 91午夜在线| 国内不卡的一区二区三区中文字幕| 欧美日韩国产高清| 国产精品不卡一区| 日本午夜免费福利视频| 玖玖精品在线| 美女视频网站久久| 欧美日韩在线视频一区二区| 国内在线免费高清视频| 日韩精品免费一区二区夜夜嗨| 国产一区二区三区蝌蚪| 欧美日韩五月天| 黄色美女视频在线观看| 欧美在线免费| 亚洲精品欧美激情| 成人高清网站| 91亚洲国产成人久久精品| 久久精品免费在线观看| 国产美女被遭强高潮免费网站| 高清在线一区| 久久国产视频网| 色综合视频一区二区三区高清| 毛片av在线| 欧美色图首页| 欧美三级xxx| 黄页在线观看免费| 亚洲精品少妇| 欧美三区在线视频| 亚洲国产成人二区| 国产一区二区三区四区五区入口| 91精品国产全国免费观看 | 欧美日韩免费视频| 久久久成人av毛片免费观看| 免费久久精品视频| 欧美电视剧在线看免费| 国产区一区二| 国产人妖乱国产精品人妖| 精品久久久久一区二区三区| 99久久精品国产亚洲精品 | 这里视频有精品| 91视频在线看| 每日更新在线观看av| 66视频精品| 91九色02白丝porn| 欧美少妇激情| 久久九九99视频| 成年人在线观看视频| 国产精品尤物| 香艳视频网站| 日韩高清一级| 精品久久香蕉国产线看观看亚洲 | 在线能看的av网址| 国产在线精品一区二区三区不卡 | 不卡的av电影| 久久伊伊香蕉| 久久精品中文| 成年人黄视频网站| 天天av综合| 91.com视频| 精品在线播放| 色伊人久久综合中文字幕| 日韩久久一区| 国产精品国产三级国产aⅴ无密码| 黄黄的网站在线观看| 精品亚洲成a人| 青青操在线视频| 久久午夜av| 色资源网在线观看| 久久国产免费| 91大神网址| 久久久久久久久99精品大| 欧美另类变人与禽xxxxx| 日本妇女一区| 欧美揉bbbbb揉bbbbb| 欧美一区二区三区久久| 日本精品一区二区三区高清| 欧美日本三级| 嫩草嫩草嫩草嫩草| 黄色亚洲免费| 亚洲午夜天堂| 国产69久久| 超碰在线免费| 欧美国产综合一区二区| 伊人春色之综合网| 永久免费av片在线观看全网站| 成人网页在线观看| 手机在线免费观看av| 国产成人av影院| 日韩一区欧美| 在线免费观看的av| 678五月天丁香亚洲综合网| 久久久综合网| 欧美成人资源| 日韩精品一区二区三区四区| 久久久久国产精品| cao在线视频| 日韩一区二区影院| 国产精品国产三级国产普通话99| 在线成人h网| 日本免费成人| 亚洲大尺度视频在线观看| 欧美男同视频网| 免费在线观看av片| 欧美性精品220| 国产精品日韩欧美一区| 动漫一区在线| 欧美影院一区二区三区| av亚洲精华国产精华精华| 国产精选一区二区三区| 久久最新网址| 牛牛在线精品视频| 制服丝袜中文字幕亚洲| 亚洲午夜电影在线观看| 成人网页在线观看| 国产后进白嫩翘臀在线观看视频| 欧洲另类一二三四区| 国产免费观看久久| 亚洲在线视频| 国产精品久久久久9999赢消| 国产精品精品| 欧美专区18| 成人成人成人在线视频| 国产欧美一区在线| 日本精品免费观看高清观看| 日韩欧美在线免费| 91久久免费观看| 欧美三级日韩三级国产三级| 精品久久久久久亚洲精品| 国产麻豆精品视频| 噜噜噜91成人网| 国产91亚洲精品久久久| 日韩福利影视|