PC SHOP by: Hussein Zahr ECE 3553: Multifarious Final Project.

Slides:



Advertisements
Similar presentations
LIS651 lecture 3 taming PHP Thomas Krichel
Advertisements

PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
PHP and MySQL Database. Connecting to MySQL Note: you need to make sure that you have MySQL software properly installed on your computer before you attempt.
Air Search and Rescue Mission Planning Tool Designed for Lt. Col. Daniel Melendez, PhD of the Mideast Region Civil Air Patrol WWW A&R MPT Training Presentation.
Information Regarding
Web Database Programming Connecting Database to Web.
REQUESTING AN ACCOUNT: In order to register onto Online order processing, please the following information to
Group X7 – Year 2010/2011 – First Year Team Project.
Faculty of Sciences and Social Sciences HOPE PHP & MySQL Stewart Blakeway FML 213
PHP and MySQL PHP for the Web, page PHP and MySQL MySQL Resource PHP – MySQL Resource
Website Development & Management PHP Odds & Ends Instructor: John Seydel, Ph.D. CIT Fall
Database Connectivity in PHP Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
PHP Scripts HTML Forms Two-tier Software Architecture PHP Tools.
Introducing! Office of State Publishing’s new Web StoreFront.
Literature Direct The New Literature Fulfillment System “In by noon, out by noon.” Visit the web address above and save the.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
F IRST W EEK Administration Guide
What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables. A table is a collections of related data entries and.
Deleting and Updating Records in MySQL using PHP Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
08/09/2015 Intro PHP & MySQL 1 Helen Hastie Room: EM2.44 Material available on Vision (modified from slides by Monica Farrow) F27DB Introduction.
MySQL in PHP – Page 1 of 17CSCI 2910 – Client/Server-Side Programming CSCI 2910 Client/Server-Side Programming Topic: MySQL in PHP Reading: Williams &
INTERNET APPLICATION DEVELOPMENT For More visit:
Logo Name of Company Search My Account, Contact, Log in HomeLiquorWineBeer Wine Copyright Google Map Location Advertisement WhiskeyBeerBrandy RumVodka.
INTERNET APPLICATION DEVELOPMENT PRACTICAL ON CONNECTING TO MYSQL.
Web Based Inventory Site Building Room Asset Number Category Type Description Serial Number Manufacturer Model Vendor Name Acquired Date P O Number Budget.
A Simple Online Store By: Lisa Schwartz ECE 3553 – Multifarious Systems Dr. Këpuska – Fall 2006.
© 2003 By Default! A Free sample background from Slide 1 Week 2  Free PHP Hosting Setup  PHP Backend  Backend Security 
ENTERING ELIGIBLE ENERGY RESOURCE APPLICATIONS IN DELAFILE Version 2.0 August 25, 2015.
Multifarious Project Team Members Alberto Dominguez Nirmit Gang Jimmy Garcia Javier Handal.
PHP meets MySQL.
MARKETING PORTAL PRESENTED TO YOU BY CABLES TO GO.
Guide To Sacrificial Giving
My final project was creating an online weapon store. In my store I have two different lists of weapons, melee and fire. I have a registration form where.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
Introduction to MySQL Lab no. 10 Advance Database Management System.
PHP MySQL Introduction. MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database.
PHP MySQL. SQL: Tables CREATE TABLE tablename { fieldname type(length) extra info,... } Extra info: –NULL (allows nulls in this field) –Not NULL (null.
MySQL Databases & PHP Integration Using PHP to write data to, and retrieve data from, a MySQL database.
SYST Web Technologies SYST Web Technologies Databases & MySQL.
Hello We are looking for a coder to code the following We have a network that has different sites: we need an application that will scan the network and.
INTERNET APPLICATION DEVELOPMENT Practical on Sessions.
1. Connecting database from PHP 2. Sending query 3. Fetching data 4. Persistent connections 5. Best practices.
Lecture 10 – MYSQL and PHP (Part 2)
Once you have located the ISBN you would like to purchase, click “Add to Cart”. You will get a pop-up window showing the item you’ve added. If you are.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting PHP & MySQL.
Login to a Database (from a Webpage), Inserting data into a database from a form, getting data from database and display on Webpage Done by: Mashail Alsolamy.
PHP Database Processing CIS 1715 Web Technologies.
MyMISLab First Day of Class Registration Walkthrough.
Controlling Web Site Access Using Logins CS 320. Basic Approach HTML form a php page that collects the username and password  Sends them to second PHP.
Click the “Add Team” button to create a brand new team. Click the “View Teams” button to view team’s you have already registered.
CS520 Project Online Book Store
Accessing mySQL relational database. MySQL database.  Today, we will attempt and open a connection to the MySQL server.  We need to specify the database.
©2016 IHG Owners Association HOW TO PAY YOUR MEMBERSHIP DUES ONLINE AT OWNERS.ORG* (*ONLY A PRINCIPAL CORRESPONDENT (PC) FOR YOUR HOTEL(S) CAN RENEW/PAY.
Federal Acquisition Service U.S. General Services Administration
Log on to Your user name will be the same as your current address except after sign you must enter “irs-mos.org”.
PHP with MYSQL Please use speaker notes for additional information!
How to register and create an online class as a teacher.
PHP AND SQL SERVER: QUERIES IST 210: Organization of Data IST210 1.
Increase Sales With Your Very Own Ecommerce Furniture Website Call us
Part 1: How to use EasyAccess 2.0 Similar to your social network software, such as Skype, WhatsApp. One license for each HMI No license is needed for.
Tried my best to simplify it for you!
Click the “Add Team” button to create a brand new team
Click the “Add Team” button to create a brand new team
Storing Images Connect to the server using the correct username and password. $conn = mysql_connect(“yourserver”, “joeuser”, “yourpass”); Create the database.
Step 1 Login on UHCP Site
Check the buttons at the bottom of your Alert
1. 4 BECOME A PAGE ADMINISTRATOR
Quick Guide for Online Ordering
Presentation transcript:

PC SHOP by: Hussein Zahr ECE 3553: Multifarious Final Project

Description It’s a commercial webpage selling computer hardware. Every User has to log and create an account. There is an administrator space where the owner of the website can add products. First steps: - Connect to a database - Login Page - Make a quote

What is missing ? Shopping Cart More dynamic pages (Java and flash code) More Professional Look

How it works ? Entering.htm Userlogin.php Newuserform.htm Member ?New user ? Firstpage.htm Newconfirm.php

How it works ? (administrator) Adminlogin.htm Addcase.htm Case.php Adminconfirm.php

Mysql Database Database on my home PC Use ip: Command Prompt

Mysql code create table user1 ( varchar(40), password varchar(20), fname varchar(15), lname varchar(15), address varchar(30),city varchar(30), state varchar(10), zip int, phone int); create table admin ( admin varchar (10),password varchar(10)); create table cases ( brand varchar (15), model varchar (15), descript varchar (15), price int); create table motherboard ( brand varchar (15), model varchar (15), descript varchar (15), price int); create table amdcpu ( brand varchar (15), model varchar (15), descript varchar (15), price int); create table intelcpu ( brand varchar (15), model varchar (15), descript varchar (15), price int); create table memory ( brand varchar (15), model varchar (15), descript varchar (15), price int); create table graphiccard ( brand varchar (15), model varchar (15), descript varchar (15), price int); create table soundcard ( brand varchar (15), model varchar (15), descript varchar (15), price int); create table hdd ( brand varchar (15), model varchar (15), descript varchar(15), price int); create table build ( scase varchar (15), smotherboard varchar (15), scpu varchar(15), smemory varchar(15), sgraphiccard varchar (15), ssoundcard varchar (15), shdd varchar (15), sprice int) ;

PHP CODE (add product) <?php $query = "INSERT into amdcpu( brand, model, descript, price) VALUES ( ' ".$inputbrand."','".$inputmodel."','".$inputdescription."','".$inputprice."')"; if ( !( $database = mysql_connect(" ", "zahr","") )) { die( " could not connect to database" ); } if ( !mysql_select_db( "pcshop", $database) ) die( "could not open pcshop database" ); if (!( $result = mysql_query( $query, $database ))) { print(" could not execute query !" ); die ( mysql_error() ); } else { ?> Added Successfully Go back to Administrator Space <?php } ?>

PHP Code (admin confirm 1/3 ) <?php $query = "select password from admin where admin = '".$adminname."'"; if ( !( $database = mysql_connect(" ", "zahr","") )) { die( " could not connect to database" ); } if ( !mysql_select_db( "pcshop", $database) ) die( "could not open pcshop database" ); if (!( $result = mysql_query( $query, $database ))) { print(" could not execute query !" ); die ( mysql_error() ); } ?> <?php if ( !$adminname || !$adminpass ) { fieldsblank(); die(); } function fieldsblank() { ?>

PHP Code (admin confirm 2/3 ) <?php } $row = mysql_fetch_row($result); $password = $row[0]; if ($password ==$adminpass){ ?> your password is correct Enter The Administrator Space What would you like to Add ? Case Motherboard AMD Processor INTEL Processor Memory Grapahic Card Sound Card

PHP Code (admin confirm 3/3 ) <?php } else { ?> you have entered a Wrong Password Please enter the correct password <?php } ?>

PHP code (display parts) <? $query = "SELECT * FROM amdcpu"; if ( !( $database = mysql_connect(" ", "zahr","") )) { die( " could not connect to database" ); } if ( !mysql_select_db( "pcshop", $database) ) die( "could not open pcshop database" ); if (!( $result = mysql_query( $query, $database ))) { print(" could not execute query !" ); die ( mysql_error() ); } while ($val = mysql_fetch_array($result)){ $brand = $val["brand"]; $model = $val["model"]; $descript = $val["descript"]; $price = $val["price"]; print ( " $brand $model $descript $price "); }?>

PHP code (New User Confirmation) <?php $query = "INSERT INTO user1 ( , password, fname, lname, address, city, state,zip, phone) VALUES ( ' ".$ ."','".$password."','".$fname."','".$lname."','".$address."','".$city."','".$state."','".$zip."','".$phone."')"; if ( !( $database = mysql_connect(" ", "zahr","") )) die( " could not connect to database" ); if ( !mysql_select_db( "pcshop", $database ) ) die( "could not open pcshop database" ); if (!( $result = mysql_query( $query, $database ))) { print(" could not execute query !" ); die ( mysql_error() ); } if (!$ || !$password || !$fname || !$lname || !$address || !$city || !$state || !$zip || !$phone) { fieldsblank(); die();} function fieldsblank() {print( "Please fill all cases remaining blank"); } if ( !ereg( "^\([0-9]{3}\)[0-9]{3}-[0-9]{4}$",$phone)){ print( "Invalid phone number Phone number should be in the form (XXX)XXX-XXXX Reload the form page and correct the error."); die();} ?> Welcome <?php print( "$fname" ); print(" "); print( "$lname"); ?>

PHP Code (user login) <?php $query = "select from user1 where password = '".$userpassword."'"; if ( !( $database = mysql_connect(" ", "zahr","") )) die( " could not connect to database" ); if ( !mysql_select_db( "pcshop", $database ) ) die( "could not open pcshop database" ); if (!( $result = mysql_query( $query, $database ))) { print(" could not execute query !" ); die ( mysql_error() ); } if (!$ || !$userpassword){ fieldsblank(); die();} function fieldsblank(){ print( "Please fill all cases remaining blank"); } $row = mysql_fetch_row($result); $ = $row[0]; if (!($ ==$user )) { ?> Welcome Dear Member PCSHOP TEAM is happy to see you again Main page <?php} else{ ?> Your Login parameters are incorrect, Please check and try again ! <?php} ?>

Frames code 2 Frames : left and top controlled by a main frame. Both frames are targetting the mainframe.htm Code

Demontration Log: my.fit.edu/~hzahr/pcshop