Graphing Data from MYSQL By Javier Montiel Urbina

Similar documents
OU Mashup V2. Display Page

IoT Smart Calendar. Advisor: Dr. Malinowski. Jason Morris, Cole Lindeman

Getting started with Raspberry Pi (and WebIoPi framework)

Create-A-Page Design Documentation

IoT Smart Calendar. Advisor: Dr. Malinowski. Jason Morris, Cole Lindeman

SETTING UP AND RUNNING A WEB SITE ON YOUR LENOVO STORAGE DEVICE WORKING WITH WEB SERVER TOOLS

Software. Full Stack Web Development Intensive, Fall Lecture Topics. Class Sessions. Grading

Bitnami Ruby for Huawei Enterprise Cloud

All India Council For Research & Training

PHP. MIT 6.470, IAP 2010 Yafim Landa

Bitnami MEAN for Huawei Enterprise Cloud

CENG 256 Internet Programming Draft

CSCI 201 Lab 1 Environment Setup

Ricoh Managed File Transfer (MFT) User Guide

Developing Online Databases and Serving Biological Research Data

jquery Basic HTTP communication

How to start with 3DHOP

Creating an Online Catalogue Search for CD Collection with AJAX, XML, and PHP Using a Relational Database Server on WAMP/LAMP Server

Restrict Access to Files on Public Website. Upload File(s) User Guide

Bitnami ProcessMaker Community Edition for Huawei Enterprise Cloud

Real Life Web Development. Joseph Paul Cohen

Acceptance Test Plan and Cases (ATPC)

Bitnami Dolibarr for Huawei Enterprise Cloud

Bitnami Node.js for Huawei Enterprise Cloud

Installing WordPress CMS

Bitnami Apache Solr for Huawei Enterprise Cloud

Ampliación de Bases de Datos

Topics. What is a RaspberryPi? Why should I want one? What is Raspbian? What is SSH? What is FTP? What is LAMP? Making a LAMP Stack!

Department of Electrical Engineering and Computer Science EECS 347 Microprocessor System Projects Spring 2017

Bitnami TestLink for Huawei Enterprise Cloud

Student Website Setup

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

Bitnami Coppermine for Huawei Enterprise Cloud

Bitnami DokuWiki for Huawei Enterprise Cloud

Using PHP to Plot PART I Updated: 10/1/17

JavaScript Fundamentals_

Mobile Login extension User Manual

#Uncomment the second line to enable any form of FTP write command. #write_enable=yes

AngularJS Intro Homework

Open a browser and download the Apache Tomcat 7 and Oracle JDBC 6 JAR from these locations. The Oracle site may require that you register as a user.

KEIL software. Index of contents UPDATE. 1. Important information 1.1. What has changed?

WEB SECURITY WORKSHOP TEXSAW Presented by Solomon Boyd and Jiayang Wang

Bitnami JRuby for Huawei Enterprise Cloud

Bitnami Phabricator for Huawei Enterprise Cloud

User Interaction: jquery

Web Design Competition File Upload Tutorial

Setting Up a Development Server

BlueSpice Installation of a local test system of BlueSpice free without installer

Bitnami HHVM for Huawei Enterprise Cloud

Section 1. How to use Brackets to develop JavaScript applications

Dreamweaver Publishing and Editing Files. Outline

Bitnami ERPNext for Huawei Enterprise Cloud

Bitnami MariaDB for Huawei Enterprise Cloud

How to Install (then Test) the NetBeans Bundle

Web Design Competition Tutorial. Designed for use by the Michigan Council of Women in Technology Copyright 2018 Patricia Howard All Rights Reserved

Web Site Design and Development. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Bitnami Open Atrium for Huawei Enterprise Cloud

Setting up the Master Computer

Internet programming Lab. Lecturer Mariam A. Salih

Instructor s Notes Web Data Management Web Client/Server Concepts. Web Data Management Web Client/Server Concepts

Tutorials Php Y Jquery Mysql Database Without Refreshing Code

A Simple Course Management Website

,

Bitnami ez Publish for Huawei Enterprise Cloud

LEADER ICT System Troubleshooting Guide

Bitnami OSQA for Huawei Enterprise Cloud

Accessing the Curriculum Management System Off-campus Process for obtaining and installing a CMS certificate on a home Mac

IBM Image-Analysis Node.js

Mobile Login Extension User Manual

Module - P7 Lecture - 15 Practical: Interacting with a DBMS

Project Plan Claims First Notice of Loss Application

Website Setup & Assignment Publishing (Tomcat)

CSCI 201 Google Chrome DevTools

Cleveland State University Department of Electrical and Computer Engineering. CIS 408: Internet Computing

Web API Lab. The next two deliverables you shall write yourself.

Bitnami MySQL for Huawei Enterprise Cloud

Orlando - Responsive Tumblr Theme

Computer Science Department

Guide for Building Web Application Using PHP and Mysql

Assignment: Seminole Movie Connection

2019 Softball BC Registrars How to Guide

Introducing FTP and HTTP Updated: 9/25/18

HelpAndManual_illegal_keygen Contactor Elite Autoresponder Installation Guide

Jquery.ajax Call Returns Status Code Of 200 But Fires Jquery Error

Things to note: Each week Xampp will need to be installed. Xampp is Windows software, similar software is available for Mac, called Mamp.

Bitnami Piwik for Huawei Enterprise Cloud

Instruction Guide! VERITEXT VAULT - ONLINE DEPOSITORY

CMS and e-commerce Solutions. version 1.0. Please, visit us at: or contact directly by

OptiRain Open 2 Installation Guide for LInux. This guide provides general instructions for installing OptiRain Open 2 on a Linux based server.

How to use jquery file. How to use jquery file.zip

Atmel Studio IDE for RIO-2015PG User Guide

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

Web Programming Laboratory CSE-3200

Your departmental website

Web API Lab folder 07_webApi : webapi.jsp your testapijs.html testapijq.html that works functionally the same as the page testapidomjs.

Bitnami Tiny Tiny RSS for Huawei Enterprise Cloud

Buzztouch Server 2.0 with Amazon EC2

Installing OptiRain Open on Raspbian

WA2572 Introduction to Responsive Web Development for Mac. Classroom Setup Guide. Web Age Solutions Inc.

UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?

Transcription:

Graphing Data from MYSQL By Javier Montiel Urbina

Requirements for Local Devices (* required cdn for graphing and acquiring data, needed in the html file*) <script src=" https://code.jquery.com/jquery-2.2.4.js"integrity="sha256-it6q9imjyuqimwnd9ldybustiq/8puow33aoqmvfp qi="crossorigin="anonymous "> </script> <script src=" https://cdnjs.cloudflare.com/ajax/libs/chart.js/2.4.0/chart.min.js "></script> We will be placing all our created files into one folder. The folder will be moved to (*if you will be using a Raspberry Pi *) /var/www/html/your_folder_name (*If you will be using your computer*) /apache24/htdocs/your_folder_name MYSQL Database Software Apache Http Web Server Software PHP Filezilla Requirements for Linux Box on Sonoma State Campus (*if you will be using a Linux Box*) /var/www/html/your_folder_name Ssh verification Filezilla(basics)

Intro Overall tutorial outcome we will follow our flowchart. We will acquire data and plot the data using some different languages such as MYSQL, PHP,Javascript, and JQuery/Ajax. Acquire Data from MYSQL Using PHP We will focus first on acquiring the data using php from the database. In this tutorial I will be uploading our created folder to the linux box using Filezilla. We will upload our folder to /var/www/html/ceistudent/tutorial/ folder. Please create a folder inside the tutorial folder in this format just like the your SSU username. (*last name+first letter of your first name*) (*montielj*)

In order to acquire our data from the database, we will need to first follow the procedure as follows. Below are the steps to acquire the data. We output the mysql data to JSON formatted because normal javascript does not have a direct connection interface to mysql.

Below is a detailed look at writing the code for acquiring the data and formatting the data into JSON. Create a file called db.php. We will be using the database located on the Sonoma State University campus. The database we will be using is as follows:

If there is data in the database and we want to test our php file, then we can type in the ip address of the linux box followed by the address of the php file. If you are using your local device then make sure to put the folder in the apache24/http and if you use the linux box then put it in the var/www/html/ceistudent1/tutorial/lastname if you test it then you should see something like the image above in the browser. Initialize the Graphing Parameters After creating our php file that requires the mysql data we will then proceed on to creating a javascript file that will call our php file and initialize the graphing parameters. We will use Chart.js, graphing library to complete this task.

In the javascript code we will be doing the following steps

I will name my javascript file graph.js.

Final Steps Finally we will create a file called index.html. You will need to include the cdns(libraries) in order to graph the data and use ajax to call your php file.

Now that we have all our files created we want to upload this folder to our linux box, through ssh. We will want to use Filezilla in order to do this but we will need credentials in order to log into the linux box. After the folder has been uploaded then we can verify that our work is successful. If you uploaded this to the linux box, then you can verify it by opening up your web browser and typing this link in 130.157.3.112//ceistudent1/tutorial/lastname+first letter of your first name/index.html. If everything successful then you should see an image like this. If there's a problem, then check the developer tool on your browser. This helps you debug the code if their is a misplaced semicolon, parenthesis, bracket, or any error. For example, if you use google chrome, then we can open the web developer console by clicking the setting menu and opening the more

tools section we can then see the web developer console. This will be very useful for debugging and future endeavors.