AJAX connection to MySQL PHP API
4.7 (23 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,013 students enrolled
Wishlisted Wishlist

Please confirm that you want to add AJAX connection to MySQL PHP API to your Wishlist.

Add to Wishlist

AJAX connection to MySQL PHP API

Learn how you can create a simple database API which can be accessed from frontend code, updated and more
Best Seller
4.7 (23 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
1,013 students enrolled
Created by Laurence Svekis
Last updated 5/2017
English
Curiosity Sale
Current price: $10 Original price: $200 Discount: 95% off
30-Day Money-Back Guarantee
Includes:
  • 2.5 hours on-demand video
  • 8 Articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Create a database connection using PHP
  • Use JSON objects within JavaScript
  • INSERT, UPDATE and GET content from a database into javascript
View Curriculum
Requirements
  • HTML and JavaScript basics
  • Frontend web development concepts
  • API general understanding of what it is
Description

The scope of the course stays focused to building the API interaction.  It covers multiple technologies working together, and topics only in relation to the finished project.

Want to access your MySQL database using JavaScript?  Let web visitors interact seamlessly with you MySQL database.  Add new content, update existing content, and query the database to return results! Databases provide so much power to your web applications, why not use them more.

This unique course takes you through the steps of creating a simple web api to allow web visitors database interaction.  Database is key to creating an amazing interactive dynamic experience for web users.  It lets you do more!

This course will open the door for you to build our a lot of COOL STUFF!  From the lessons of the course, you will be able to produce a wide range of uses for the code. Source code is included so you can practice along side the lessons, try it out for yourself and tweak it for your individual needs.

This course covers a lot of technologies and demonstrates them all working together to achieve the API objective.  

JavaScript and an understanding of the Document Object Model is an important foundation before starting this course.  We've designed the course to be fast paced step by step covering the essentials to build the web API.  Please note that the course overviews core technology used only within the course to build the API.  

What you will learn

  • Basic HTML - setting up simple elements to access from JavaScript
  • Basic CSS - creating buttons
  • jQuery - AJAX, Getting element values from a form, updating element inner HTML.
  • JSON - How to send JSON objects and how to retrieve JSON data and use it as objects within JavaScript.
  • PHP - How to get request variables, setup a mySQL database connection, looping of data, arrays, outputting content as JSON formatted.
  • RegEx - Check values as numeric
  • MySQL - Setup a database, connect to a database, phpmyadmin access, write queries to Update, select and insert data.   Prevent SQL injection.
  • See it all working together and much more!

By the end of the course you will have the knowledge on how to put it all together and create a simple API to interact with your database.  Use this course as a starting point to limitless options with this fully functional and customizable code.

I'm here to help you learn about APIs and ready to answer any questions you may have.  What are you waiting for enrol now and see what you can do!

Who is the target audience?
  • web developers
  • anyone looking to connect frontend code to a database
  • web designers
  • JavaScript developers and jQuery Developers
Students Who Viewed This Course Also Viewed
Curriculum For This Course
31 Lectures
02:26:30
+
Quick Intro to jQuery
4 Lectures 19:22
Quick jQuery intro and how to add it to your web pages
04:43

Working with jQuery
06:54

jQuery Ajax methods
07:25

AJAX jQuery Source Code
00:20
+
Create PHP endpoint
5 Lectures 18:22
AJAX post content to PHP endpoint
07:02

PHP output as JSON data
05:24

AJAX send multiple values to PHP endpoint
05:20

Source Code PHP AJAX index
00:29

Source Code api
00:06
+
Adding MySQL database
13 Lectures 01:00:49
Create MySQL database table
02:26

Create table mysql
00:06

Connect to Database
04:19

Add content to database via AJAX frontend code
06:42

Insert to mySQL
05:53

Insert and update Database content with AJAX
09:43

Get data from Database output as JSON
09:21

Dynamically output new JSON data
07:34

Get data output into HTML
05:47

Web API conclusion
07:14

Index Source Code
00:50

API.php source code
00:52

Course Resources
00:00
+
Code Snippets
7 Lectures 38:29
Setup HTML form structure
05:28

AJAX setup form data serialize
05:42

Respond with JSON data from server
05:50

PHP setup response to AJAX
04:41

Frontend messaging to user AJAX
09:31

Application Tweak and bug fix
06:42

Form validations JSON response Source Code
00:35
About the Instructor
Laurence Svekis
4.2 Average rating
13,275 Reviews
297,954 Students
185 Courses
Instructor, 18+yrs Web Experience

I'm here to help you learnachieve your dreams, come join me on this amazing adventure today

Innovative technology expert with a wide range of real world experience. Providing Smart digital solutions online for both small and enterprise level businesses.

"I have a passion for anything digital technology related, enjoy programming and the challenge of developing successful digital experiences. As an experienced developer, I created my first computer applications in 1990, and my first website in 1998.  I enjoy sharing my knowledge with others and want to help you share in the wonderful opportunities that the internet provides."

"Learning, understanding with a strong passion for education.  The internet has provided us with new opportunities to expand and share knowledge."

Want to learn more about becoming a web developer, do you want to experience the freedom that technology provides for us? Learn how to bring amazing things to life online.  Technology connects us all in many ways.  It opens up doors to those who embrace it and learn how to make those connections real.

"My courses are designed to help you achieve your goals, learn and update skills"

Background : An experienced web application developer, having worked on multiple enterprise level applications, hundreds of websites, business solutions and many unique and innovative web applications.  Web application development areas of expertise include HTML, CSS, JavaScript, JQuery, Bootstrap, PHP and MySQL. Anything to do with web creation and digital experience. Passionate about everything to do with web application development, programming to online marketing with a strong focus on social media and SEO

"Understanding technology provides a means to better connect with users.  It also opens so many doors.   Knowledge is the key to success and I want to help you experience what technology has to offer. I'm passionate about web technologies, and look forward to sharing my knowledge and experience with you!"