美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

代寫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




















 

標(biāo)簽:

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

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    这里只有久久精品| 国产老熟女伦老熟妇露脸| 黄色激情在线观看| 国产伦精品一区二区三区88av| 人人澡人人澡人人看| 800av在线播放| 国产艳俗歌舞表演hd| 色婷婷国产精品免| 欧美日韩一区二区三区四区五区六区| 色哟哟视频在线| 欧美做受喷浆在线观看| 69xxx免费| 农村妇女精品一区二区| 成人欧美一区二区三区黑人一| 国产一二三四区| 久久国产精品影院| 日韩激情小视频| 久久久久久久久久网站| 污片免费在线观看| 成人自拍小视频| 极品尤物一区二区| 欧美激情视频二区| 日本69式三人交| 国产chinesehd精品露脸| 99成人在线观看| 国产精品18在线| 一级特黄曰皮片视频| 中国美女乱淫免费看视频| 欧美一级大片免费看| 成人国产精品久久久网站| 在线精品一区二区三区| www..com.cn蕾丝视频在线观看免费版 | 黄色aaa视频| 999精品在线视频| 99热6这里只有精品| 熟女俱乐部一区二区| 成人欧美精品一区二区| 国产成人无码aa精品一区| 538任你躁在线精品视频网站| 影音先锋男人资源在线观看| 玖玖爱在线观看| 国精产品一区二区三区| 亚洲激情图片网| 91 在线视频| 国产精品日日摸夜夜爽| 懂色av懂色av粉嫩av| 老妇女50岁三级| 日本wwwwwww| 一卡二卡三卡四卡| 摸摸摸bbb毛毛毛片| 91精品久久久久久久久久久久| 人人妻人人澡人人爽| 亚洲av无码一区二区二三区| 小早川怜子久久精品中文字幕| 久久久视频6r| www深夜成人a√在线| 国产综合内射日韩久| 黄色av网址在线观看| 国产精品国产三级国产专业不| 国产午夜福利一区| 亚洲av熟女国产一区二区性色| 精品国产视频在线观看| 天天操天天干天天操天天干| 日本aⅴ在线观看| 国产午夜手机精彩视频| 成人啪啪18免费游戏链接| 成人影视免费观看| 精品丰满少妇一区二区三区| a级黄色免费视频| 在线精品视频播放| 国产免费久久久久| 熟女少妇一区二区三区| 不许穿内裤随时挨c调教h苏绵| 国产精品理论在线| 国偷自产av一区二区三区麻豆| 影音先锋男人资源在线观看| 国产激情视频网站| 精品无码av一区二区三区不卡| 国产女主播喷水高潮网红在线| 国产精品精品软件男同| 熟妇人妻久久中文字幕| 久久久无码人妻精品无码| 国产在线一卡二卡| 国产三级aaa| 女性裸体视频网站| 91精品少妇一区二区三区蜜桃臀| 国产精品福利导航| 美女福利视频在线观看| 亚洲图片第一页| 日本国产在线视频| 中文字幕 欧美 日韩| 免费三级在线观看| 国产日韩欧美在线观看视频| 免费国产羞羞网站美图| 中文字幕求饶的少妇| 日韩av手机在线免费观看| 91嫩草|国产丨精品入口| 中文字幕在线2021| 国产精品果冻传媒| 老司机免费视频| 中文字幕被公侵犯的漂亮人妻| 美女爆乳18禁www久久久久久| 中文字幕 自拍| 超碰人人人人人人人| 91香蕉视频污在线观看| caopeng视频| 成人免费视频网站入口::| 亚洲一区二区三区三州| 午夜影院福利社| 亚洲性猛交xxxx乱大交| 久久久久久久久久97| 国产乱淫av片| 女人又爽又黄免费女仆| 啪啪一区二区三区| 国产一卡二卡三卡四卡| 魔女鞋交玉足榨精调教| 日韩激情小视频| 国产传媒第一页| 欧美日韩国产黄色| 久久福利小视频| 毛片视频免费播放| www.555国产精品免费| 天天舔天天操天天干| 一区二区视频免费看| 可以直接看的无码av| 亚洲国产精品一区二区久久hs| 亚洲成人福利视频| 国产又粗又猛又爽视频| 能看毛片的网站| 亚洲精品国产精品国自| japan高清日本乱xxxxx| 国产sm调教视频| 久久亚洲AV成人无码国产野外| 五月婷婷一区二区| 亚洲午夜久久久久久久国产| 秘密基地免费观看完整版中文 | 黄色片网站免费| 中文字幕第10页| 国产精品18在线| 熟女俱乐部一区二区视频在线| av不卡中文字幕| 精品1卡二卡三卡四卡老狼| 国产一二三区精品| 青青青视频在线播放| 人妻体内射精一区二区| 国产精品无码在线| 伊人网综合视频| 亚洲视频天天射| 色婷婷精品久久二区二区密| 97超碰免费在线观看| 午夜精品久久久久99蜜桃最新版| 国产又粗又长又硬| 一区二区黄色片| 久操视频免费看| 人人爽人人爽人人片| 99久久99久久精品免费看小说.| 永久av免费网站| 亚洲一区二区三区无码久久| 蜜桃色一区二区三区| 亚洲精品无码久久久久久久| 麻豆传媒在线看| 国内偷拍精品视频| 伊人网综合视频| 神马久久久久久久久久久 | 少妇熟女视频一区二区三区| 日韩在线视频网址| 大尺度在线观看| 精品人妻二区中文字幕| 伊人影院在线观看视频| 性色av无码久久一区二区三区| 玖玖爱这里只有精品| 国产精品欧美性爱| 亚洲色图14p| 纪美影视在线观看电视版使用方法| 一级性生活免费视频| 中文字幕影音先锋| 亚洲国产无码精品| 2014亚洲天堂| wwwav国产| 97伦伦午夜电影理伦片| 91精品又粗又猛又爽| 麻豆天美蜜桃91| 99re6热在线精品视频| 精品无人区无码乱码毛片国产| 99re久久精品国产| 乱码一区二区三区| 小泽玛利亚一区二区免费| 色天使在线视频| 日本高清www| 日本xxxxxxxxx18| 国产三级短视频| 老头老太做爰xxx视频| 久久久视频6r| 国产精品成人在线视频| 激情高潮到大叫狂喷水| 亚洲色偷偷综合亚洲av伊人| 99热精品免费| 国产精品扒开腿做爽爽| 天堂网av2018| 制服.丝袜.亚洲.中文.综合懂|