AJAX connection to MySQL PHP API (Udemy.com)
Learn how you can create a simple database API which can be accessed from frontend code, updated and more
Created by: Laurence Svekis
Last updated November 2024
What you will learn
- Create a database connection using PHP
- Use JSON objects within JavaScript
- INSERT, UPDATE and GET content from a database into javascript
How it compares
Against the other 388 rated Udemy courses in SQL on CourseDuck:
- Rating4.5 out of 5higher than 48% of them
- Reviews109#341 of 389 by number of reviews
- Length2.5 hoursshorter than 79% of them
- Last updatedNovember 2024more recently than 60% of them
Course 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!
Instructor Details
- 4.5 Rating
109 Reviews
Laurence Svekis
Hi, I’m Laurence Svekis, and I’m here to help you learn smarter, build real skills, and confidently use AI and modern tools to create amazing things.
I’m a Google Developer Expert (GDE), international speaker, author, and educator specializing in AI-powered learning, Google Workspace automation, and practical development with Google Apps Script and JavaScript. I’ve been teaching online since 2002 and have helped over two million students worldwide develop real-world skills through hands-on courses, books, and workshops.
My passion is learning with AI—using AI not as a shortcut, but as a powerful learning partner. I focus on helping learners understand how things work, how to apply AI responsibly, and how to build tools that solve real problems. Many of my courses explore how AI can act as a tutor, assistant, or productivity booster inside everyday tools like Google Docs, Sheets, and Workspace.
I’m especially known for:
Google Apps Script & Google Workspace automation
Building AI-powered assistants and learning tools
JavaScript for real-world applications
Using AI to improve learning, productivity, and workflows
More courses by Laurence Svekis
Complete Google Workspace (G Suite), Beginner - Advanced (2025)
4.6 (10,757 Reviews)
Provider: Udemy
Time: 23.2h
$84.99
Frontend web developer Modern HTML CSS JavaScript (2025)
4.5 (6,723 Reviews)
Provider: Udemy
Time: 12.2h
$64.99
Web Developer Course HTML CSS JavaScript Learn Web Design (2024)
4.5 (5,865 Reviews)
Provider: Udemy
Time: 5.9h
Free
Google Apps Script Complete Course Beginner to Advanced (2025)
4.7 (3,971 Reviews)
Provider: Udemy
Time: 27.7h
$14.99
Modern Web Design HTML5 CSS3 beginners guide to Websites (2023)
4.4 (1,915 Reviews)
Provider: Udemy
Time: 3h
$11.99
More SQL courses
SQL - The Complete Developer's Guide (MySQL, PostgreSQL) (2025)
4.8 (2,153 Reviews)
Provider: Udemy
Time: 19.7h
$94.99
SQL Server High Availability and Disaster Recovery (HA/DR) (2026)
4.8 (1,810 Reviews)
Provider: Udemy
Time: 88.3h
$16.99
70-461 Session 3: Querying Microsoft SQL Server (T-SQL code) (2025)
4.8 (1,094 Reviews)
Provider: Udemy
Time: 3.6h
$12.99
Modern Event-Driven Spring Boot: Kafka & Spring Cloud Stream (2026)
4.8 (494 Reviews)
Provider: Udemy
Time: 13.4h
$10.99
Oracle Database 12c Backup and Recovery using RMAN (2024)
4.8 (428 Reviews)
Provider: Udemy
Time: 20.1h
$34.99
Reviews
By Anonymized User on 3/24/2023
This course is very small but made me quickly start implementing ajax in all my web apps.
By Graham Trevor on 4/19/2022
Very good teacher, he goes through and explains alot, and is nice and slow.
By Acs on 1/7/2022
Each section is well explained in full detail. The code samples are easy to follow and the examples dig deeper into the lecture main points.
By Michael John Swemmer on 8/29/2020
I was stuck on a problem for work, this was a massive help, super grateful I found it. Some things didn't work as it's an older course, however all the answers you need are in the Q&A.
By Gwiza Bonhomme Maryse on 1/31/2019
Most courses either focus on frontend (javascripts) or PHPMysql. So I was confused how to make both work together. This course was exactly what I needed. and in only 2hours. He explains concepts quite well
By Charles Turnbull on 12/30/2017
I find it to be a bit confusing, sometimes, it seems that you are not sure if what you are coding will actually work, I would strongly recommend to have an outline of what you will cover in order to have the information a bit less confusing, also, making a bit more explanation on what is happening would help tons. One of the biggest problems I found is that you commit errors while coding, either typing wrong the code or function names and then correcting them off video and never telling you did. That is very confusing, although I do understand what you did after careful checking that makes it frustrating trying to review the code all the time.
By Aaron Dean on 11/18/2017
I appprciate the clarity of the instructor. He goes at a fast pace, which is ideal for video, since we can rewind and pause. I feel confident that I can learn the material.
By David Butchy on 10/31/2017
enough detail to follow along, terse enough not to get bored; was playing at 1.5 normal speed
By James Miller on 7/9/2017
Clear code writing, English language, explanations of data round trips, simple but effect examples, and pertinent to what I need at this time.
By Robert Wilby on 1/17/2017
Very clean answer to adding data to MySQL via a form on the web... Tutor doesn't waste time and stays focused on showing you how to work with javascript and a php api to add and retrieve data to and from a MySQL database. Perfect for my needs... Many thanks...
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 90 / 100












