1 Mexican Restaurant Prepared by Sandy Nichols November 21, 2006.

Slides:



Advertisements
Similar presentations
PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
Advertisements

PHP Hypertext Preprocessor Information Systems 337 Prof. Harry Plantinga.
Mine Action Information Center
Web Database Programming Connecting Database to Web.
ViewTrip White Label Sales Presentation. What is ViewTrip White Label? >ViewTrip White Label is a version of our web based ViewTrip product that enables.
Chicago Band Connection Developed by Chutes & Ladders.
Reference and Instruction Automated Statistics Gathering and Reporting System Members: Patrick Chen (pyc7) Soo-Yung Cho (sc444) Gregg Herlacher (gah24)
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
A Product of Enterprise Content Management System (CMS) Web & Portal Content Management Systems for faster web publishing Copyright.
PHP-Fusion. Introduction PHP-Fusion is a lightweight open source content management system (CMS) written in PHP. PHP-Fusion utilizes a MySQL database.
Database Updates Made Easy In WebFocus Using SQL And HTML Painter Sept 2011 Lender Processing Services 1.
1 CS428 Web Engineering Lecture 23 MySQL Basics (PHP - VI)
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Landline : to Fax : Mobile : Website :
Lecturer: Ghadah Aldehim
A web design firm! Champyon Shots. The Proposal The purpose of this website is to promote Greenville College Soccer for future recruits. The terms of.
Deleting and Updating Records in MySQL using PHP Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
1855 Cookers Luke Newmann, Fall Objective To improve communications, increase participation, and increase donations for a University of Houston.
Server-side Scripting Powering the webs favourite services.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
Tutorial 1: Getting Started with Adobe Dreamweaver CS4.
Web Based Inventory Site Building Room Asset Number Category Type Description Serial Number Manufacturer Model Vendor Name Acquired Date P O Number Budget.
Mark Dixon Page 1 23 – Web applications: Writing data to Databases using PhP.
2009© Ineffable Solutions, LLC., All rights reserved. 1 Mockup Revision #2.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Group ID: Prepared By: Jubin Goswami Milan Valambhiya.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Polling System Part 1 Creating PHP & MySQL Files CIS 254.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
SYST Web Technologies SYST Web Technologies Databases & MySQL.
Web-Based Commerce Auto Parts Store presented by Victor Hsu.
How to Set-up Your Local Listing. Welcome This tutorial will take you through the steps to set-up (or edit) your Local listing to ensure you get the most.
The Pencil Company Team Slave to the WWW. Team Members  Ashley Petrinec – Co-lead of documentation and design  Jennifer Williams – Co-lead of documentation.
ECE 3553 Final Project by Brian Robl. What is Eventor? A simple, yet effective, website for event planning and searching.  Influence from Facebook Events.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
PHP MySQL Image Gallery. The admin section contain the following : Add New Album Album List Edit & Delete Album Add Image Image List Edit & Delete Image.
Intro to DatabasesClass 4 SQL REVIEW To talk to the database, you have to use SQL SQL is used by many databases, not just MySQL. SQL stands for Structured.
Creating PHPs to Insert, Update, and Delete Data CS 320.
Retrieving data from MySQL using PHP Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
GOAL User Interactive Web Interface Update Pages by Club Officers Two Level of Authentication.
DataFlow Diagram – Level 0
How to Build an IT Portal with Oracle Application Server Allan L Haensgen Senior Principal Instructor Oracle Corporation Session id:
MySQL. Is a SQL (Structured Query Language) database server. Can be accessed using PHP with embedded SQL Queries Supports Large DB’s, 60,000 tables with.
MySQL MySQL and PHP – interacting with a database.
ThoughTree Branch out your thoughts
Web Application Design. Data –What data is available? –How do we store it or how is it stored in the DB? Schema Data types Etc. –Where is the data?
How to Set-up Your Business Alliance Listing. Welcome  This tutorial will take you through the steps to set-up (or edit) your listing to ensure you get.
HTML Introduction HTML Editors HTML Basic HTML Elements HTML Attributes HTML Headings HTML Paragraphs HTML Formatting HTML Links HTML Head HTML CSS HTML.
Basics Components of Web Design & Development Basics, Components, Design and Development.
Web development. What is web development? - It is a broad term for the work involved in developing a web site for the Internet - It can range from developing.
Web Content And Customer Relationship Management Solution. Transforming web sites into a customer-focused, revenue generating channel with less stress.
Website Schematic BDU - St. Lucia Chamber of Commerce
10/09/2018 The eFolio Arrives John Sewell.
Introduction to Dynamic Web Programming
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Chapter 19 PHP Part III Credits: Parts of the slides are based on slides created by textbook authors, P.J. Deitel and H. M. Deitel by Prentice Hall ©
PHP & MySQL Introduction.
CAFANH On Line System.
PHP / MySQL Introduction
PHP Overview PHP: Hypertext Preprocessor Server-Side Scripting
Bill Chown C I O Chapter Websites Bill Chown C I O
Web Systems Development (CSC-215)
Title: Tech Training Certificate: Ace of Initiative Program
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Members Only Area Guide Book
Presentation transcript:

1 Mexican Restaurant Prepared by Sandy Nichols November 21, 2006

2 Table of Contents Executive Summary3 Site Map4 Database Structure5 Menu Page Flowchart6 Pseudo Code7 Admin Page Flowchart8 Pseudo Code9 Edit Records Flowchart10 Pseudo Code11 Delete Records Flow Chart12 Pseudo Code13

3 Executive Summary El Azteca Mexican Restaurant needs a website that showcases their menu, provides directions, and gives a general presence on the web. This will be achieved by storing the menu in a MySQL database and having PHP dynamically write to the Menu page. The restaurant also needs a way to periodically post specials themselves. Advertised specials are by way of coupons circulated throughout the community. By building a photo gallery, they will be able to frequently upload an image of the coupon directly to their Home page. This approach preserves the restaurant’s current marketing strategy while providing another means of coupon distribution through a web presence. The Definitions page will define what is in popular Mexican dishes. If a person does not know what a Chalupa is, they can go to the page and read “flat tortilla with beans sprinkled with cheese and topped with guacamole salad.” Definitions will be taken from the current printed menu. If restaurant is willing to have the food photographed, this page could have an accompanying photo with the definitions. The about page will be a static page with some light history about the company, coupled with photos of beautiful people dining and drinking on the outdoor patio and listening to the Mariachi band. This page will be designed to give an overall feel of the atmosphere. This page may include pictures of long-term servers willing to be photographed. Currently the proposed site is five pages, but should be considered scaleable if future needs arise. Additions could be a feature on the many brands of tequilla sold at the bar or a feature on Mexican specialty drinks. Another enhancement could be the ability to take online secured orders for carry-out. Flash components could add another level of interactivity, like make your own virtual tacos game. Current Coupon

4 Specials Coupons Dynamic Static History Patio pics Staff pics Site Map Static DatabasePhoto Gallery Directions Contact Definitions of Mexican food

5 Database Structure M E N U P H O T O G A L L E R Y (for coupons)

6 Visit Menu page Connect to MySQL Select db to work with Query DB by Category Store in variable Store # of records in variable Is # records >0 ? Fetch record Echo Record “No records” stop Flowchart for Menu Page

7 Visit Menu page Connect to MySQL Select db to work with Query DB by Category Store in variable Store # of records in variable Is # records >0 ? Fetch record Echo Record “No records” stop Pseudo Code for Menu Page OPEN DB ElAzteca READ DB SET results to a variable SET # of results to variable DOWHILE # >0 READ results from variable WRITE results to page CLOSE file

8 Flowchart for Admin Page Visit Admin url Successful login NO YES Admin Page Add/Edit/Delete Photo Gallery Stop Add/Edit/Delete Menu Database

9 Pseudo Code for Admin Page DO login verification Visit Admin url Successful login NO YES Admin Page Add/Edit/Delete Photo Gallery Stop Add/Edit/Delete Menu Database

10 Flowchart for Editing Records start Is record id set? “Record does not exist” stop NO YES Has form Been submitted? Show form stop NO YES Update Record DB Where id =$_GET[‘id’] Errors? NO YES “Query Error” Output SQL & Mysql_error() stop Start Session Redirect To admin page showForm() Connect to DB Select DB Query DB For record Output form With data In elements End showForm() Store success Message in Session Var

11 Pseudo Code for Editing Records start Is record id set? “Record does not exist” stop NO YES Has form Been submitted? Show form stop NO YES Update Record DB Where id =$_GET[‘id’] Errors? NO YES “Query Error” Output SQL & Mysql_error() stop Start Session Redirect To admin page showForm() Connect to DB Select DB Query DB For record Output form With data In elements End showForm() Store success Message in Session Var OPEN record id READ record id IF id not set THEN WRITE error IF id set THEN continue READ record id IF id not submitted THEN show form IF id submitted THEN WRITE DB END-IF IF errors THEN WRITE error IF no errors THEN WRITE success END-IF OPEN Admin page CLOSE

12 Flowchart for Deleting Records start Is record id set? Delete Var Set? NOYES NOYES NO YES Query DB For Record “Are you sure?” Show Record Delete? Redirect To admin page stop Delete Record From DB Table Where id= $_GET[‘id’] Errors? NO YES “Query Error” Output SQL & Mysql_error() stop Start Session Redirect To admin page Store success Message in Session Var “No such record” stop

13 Pseudo Code for Deleting Records start Is record id set? Delete Var Set? NOYES NOYES NO YES Query DB For Record “Are you sure?” Show Record Delete? Redirect To admin page stop Delete Record From DB Table Where id= $_GET[‘id’] Errors? NO YES “Query Error” Output SQL & Mysql_error() stop Start Session Redirect To admin page Store success Message in Session Var “No such record” stop READ record id IF id not set THEN WRITE error IF id set THEN continue END-IF IF delete not confirmed, THEN confirm IF delete confirmed THEN delete END-IF IF errors THEN WRITE error IF no errors THEN WRITE success OPEN Admin page END-IF CLOSE

14