Create JSON Using PHP and MySQL, A Simple API - #75

preview_player
Показать описание
Convert data from MySQL to JSON format using PHP, OOP, and PDO. This is a simple way to create information that can be read by an external application. In this tutorial, we create an application that makes data accessible on different platforms regardless of code. We create a REST or RESTful API that takes data from a server opens it to your applications. Converting the data to JSON is the first step to building your own API.

Last week, we create an authentication script using Vanilla JavaScript, this week, we take the idea from there and create the API that the script will use to login in.

00:00 Intro
02:45 Setup Folder Structure
03:47 Autoloader
05:54 PDO Database Class
12:18 Build Script to Create Tables and Content
32:05 Setup Frontend Pages
39:56 Create Users Class
47:07 Create User Authentication Page

Convert Data from MYSQL to JSON (Part 2): this video

`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````

Applications Used

Computer Hardware:

Camera:

Audio:

DISCLAIMERS:

Рекомендации по теме
Комментарии
Автор

Thank you so much for this it's amazing. Just ran into a wamp issue after making the htaccess file. Maybe it's just me but if anyone get the same problem, making sure to run the project in a new specific virtual host fixed it.

Kestryk
Автор

The $users variable in the auth.php file has not been declared and as a result, causes the following issue Warning: Undefined variable $users in on line 11

Fatal error: Uncaught Error: Call to a member function auth() on null in Stack trace: #0 {main} thrown in on line 11

in my file, it is in line 11. How do we resolve this, please?

simonwarui
visit shbcf.ru