Due Dec 9th simple CHAT with

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizards Guide to PHP by David Lash.
Advertisements

HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Creating a Login Process Creating a users table and a login form that denies access to unauthorized users.
1 Topic 6 Processing Form Input. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction Form.
Basic HTML. Guide to HTML code Not case sensitive Use tag for formatting output: new line, paragraph, text size, color, font type, etc. Can be a single.
INTRODUCTION The Group WEB BROWSER FOR RELATION Goals.
The problem arose when a change took place when admin Was logged in and changed something in the ‘Manage Pages’ Area. But this is not clear. The point.
Multiple Tiers in Action
Database Connectivity in PHP Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
CST JavaScript Validating Form Data with JavaScript.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
Advance Database Management Systems Lab no. 5 PHP Web Pages.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Deleting and Updating Records in MySQL using PHP Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Slide 8-1 CHAPTER 8 Using Databases with PHP Scripts: Using MySQL Database with PHP.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 The Web Wizard’s Guide to PHP by David Lash.
Web Application Development. Define ER model in QSEE Generate SQL Create Database mySQL Write Script to use TableEditor class Process to create A simple.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
Web Application Development. Tools to create a simple web- editable database QSEE MySQL (or PHPMyAdmin) PHP TableEditor.
1 MySQL and phpMyAdmin. 2 Navigate to and log on (username: pmadmin)
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
PHP meets MySQL.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Oracle Application Express Security. © 2009 Oracle Corporation Authentication Out-of-the-Box Pre-Configured Schemes LDAP Directory credentials Oracle.
Week 7. Lecture 2 Functions, Arrays, PHP&MySQL. Function with More than one argument and a return statement For a function to return a value, the return.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
ISYS 475 Project: Customizing a Zen Cart E-Commerce Site.
Looking for simple php script Language: PHP Must be php>>>>> I can not use an other language Budget: $30.0 If more than $30.0 Please do not bid Login page.
Website Development with PHP and MySQL Saving Data.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
CHAPTER 7 Form & PHP. Introduction All of the following examples in this section will require two web pages. The first page retrieves information posted.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting MySQL – Inserting Data.
JDBC Tutorial CSCI 201L Jeffrey Miller, Ph.D. HTTP :// WWW - SCF. USC. EDU /~ CSCI 201 USC CSCI 201L.
GOAL User Interactive Web Interface Update Pages by Club Officers Two Level of Authentication.
How to create a table in Blackboard?
Security Considerations Steve Perry
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
THE WEBMASTERS: SENG + WAVERING.  On account of construction, we will be having class in room 1248 next week.
Exporting a database to a sql script 1. Getting to the command-line in XAMPP. Go to All Programs/XAMPP/XAMPP Control Panel. Click on Shell. 2.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
ASSIGNMENT 02 – Week of Nov 16 th IDEAS SQL insert and update statements Programmers-defined functions in PHP PHP safe IO functions: mysql_real_escape_string.
ASSIGNMENT POINTS DUE DATE: Monday NOV 30 JAVASCRIPT, INPUT VALIDATION, REGEX See 2 nd slide for Form See 3 rd next slide for the required features.
Display Page (HTML/CSS)
LESSON : EVENTS AND FORM VALIDATION -JAVASCRIPT. EVENTS CLICK.
LOGIN FORMS.
CS491B Software Design Lab Project Report Yuet-Chi Lee California State University, Los Angeles.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
Chapter 5 Validating Form Data with JavaScript
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Web Technologies Computing Science Thompson Rivers University
Data Virtualization Tutorial… CORS and CIS
Section 8: Model-View-Controller
Storing Images Connect to the server using the correct username and password. $conn = mysql_connect(“yourserver”, “joeuser”, “yourpass”); Create the database.
Section 8: Model-View-Controller
AJAX.
First-time Login to Business Banking:
Web Systems Development (CSC-215)
Web Browser server client 3-Tier Architecture Apache web server PHP
MySQL and PHPMyAdmin 1.
© 2015, Mike Murach & Associates, Inc.
图片墨迹时尚商务PPT模板 I’m a great place for you to tell a story and let your users know a little more about you. I’m a great place for you to tell a story and.
Web Technologies Computing Science Thompson Rivers University
Unit J: Creating a Database
HOW TO PLACE MY ORDER ?.
Presentation transcript:

Due Dec 9th simple CHAT with AJAX PHP MYSQL SQL JAVASCRIPT

Test on update Select /retrieve content [ listen button ] Test on update Update DB [on enter text] Test on update Check as part of each update CHAT_CONTENT text NAME primary PASSWORD joe1 007 How are you.. moe2 008 Fine thanks .. CHAT TABLE – 3 COLUMNS

CHAT NAME /PASSWORD joe 007 Are you listening to me, Moe? CHAT NAME /PASSWORD moe 008 Yep, I'm here joe. How are things? PHP SCRIPTs + DB LISTEN TO moe listen Yep, I'm here joe. How are things? LISTEN TO joe listen Are you listening to me, Moe BROWSER -1 BROWSER -2

CHAT CREDENTIALS /UPDATE 1. Push to DB Use AJAX PHP 2 SEPARATE PHP SCRIPTS MYSQL TABLE CHAT 2. pull from DB Use AJAX Listen to who?

onkeyup event => ajax [1st group of ajax functions – ENTER YOUR NAME /PASSWORD CONTENT BELOW TRANSMITTED AS TYPED onkeyup event => ajax [1st group of ajax functions – http1 is object & functions ] Content entered here sent to your chat table entry in database Content copied to database Chat by php using SQL UPDATE WARNING IN SPAN IF FAIL TO MAKE AN UPDATE Check password in Update listen ENTER name of who to listen to & RETRIEVE their CHAT content on Clicking Listen button Button click => ajax [2nd group of ajax functions http2 is object & functions ] - php now uses SQL SELECT <= Response deposited here Chat retrieved from named person goes here

ENTER YOUR NAME /PASSWORD CONTENT TRANSMITTED AS TYPED joe 999 Keyup event => ajax behavior Content entered here sent to your chat table entry in database Content to database SQL UPDATE This stays same Include checking user and password in Update SQL WARNING – CHAT NOT UPDATED – WRONG CREDENTIALS If fail to update -zero affected rows

Optional enhancement ENTER YOUR NAME /PASSWORD CONTENT TRANSMITTED AS TYPED onkeyup => AJAX PHP SCRIPT SQL update + password and name check ENTERED CONTENT ENTER VALID NAME & RETRIEVE CHAT on listen CLICK poll stop Optional enhancement RETRIEVED CONTENT