Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

67 total results found

Restoring a XAMPP Project from BackupNew Page

Developer Toolbox XAMPP Backup and Recovery

If a project is accidentally deleted, corrupted, moved to another computer, or you need to continue working from a backup, both the website files and database must be restored. This tutorial demonstrates how to restore a complete XAMPP project from a backup. B...

Moving a XAMPP Project to Another Computer

Developer Toolbox XAMPP Backup and Recovery

One of the advantages of using XAMPP is that projects can easily be moved between computers. This is useful when: Working between school and home. Upgrading to a new computer. Sharing a project with a teacher. Creating a backup before reinstalling Windows. A c...

New Page

Working with Data

Importing JSON into MySQL with PHP

Working with Data

Creating a Security Events Table

Working with Data Importing JSON into MySQL with PHP

In this tutorial, you will create a MySQL table to store security event data imported from a JSON file. The JSON file contains homes, devices and events. Rather than storing the entire JSON structure, each event will be stored as a separate row in a database t...

Importing JSON into MySQL with PHP

Working with Data Importing JSON into MySQL with PHP

In the previous tutorial, you created a security_events table. In this tutorial, you will read data from a JSON file and import it into MySQL using PHP. The JSON file contains devices and events. Each event will be inserted into the security_events table as ...

Querying Imported Data with SQL

Working with Data Importing JSON into MySQL with PHP

In the previous tutorial, you imported JSON data into the security_events table. In this tutorial, you will use SQL queries to analyse the imported data. View All Events Open phpMyAdmin and select the: security_events table. Run: SELECT * FROM security_events...

Building a Security Dashboard Using PHP and MySQL

Working with Data Importing JSON into MySQL with PHP

In the previous tutorial, you used SQL queries to analyse imported JSON data. In this tutorial, you will build a dashboard that displays security statistics directly from the database. The dashboard will display: Total Devices Total Events Critical Events High...

Working with JSON Data in JavaScript

Working with Data

Loading JSON Data with JavaScript

Working with Data Working with JSON Data in JavaScript

In this tutorial, you will load data from a JSON file and display it on a webpage using JavaScript. The JSON file contains information about a smart home, including devices and security events. Create the Project Files Create a new folder called: json-demo Ins...

Displaying JSON Data in a Table

Working with Data Working with JSON Data in JavaScript

In the previous tutorial, you loaded a JSON file and displayed basic information about the smart home. In this tutorial, you will display the device data in an HTML table using JavaScript. Current Project Structure Your project should contain: json-demo ├── in...

Displaying Nested Event Data from JSON

Working with Data Working with JSON Data in JavaScript

In the previous tutorial, you displayed device information in a table. In this tutorial, you will work with nested JSON data by displaying the security events associated with each device. The JSON file contains devices, and each device contains its own list of...

Creating a Security Dashboard from JSON Data

Working with Data Working with JSON Data in JavaScript

In the previous tutorial, you displayed individual security events in a table. In this tutorial, you will create a simple dashboard that summarises the data and highlights important security information. The dashboard will display: Total Devices Total Events C...

Working with APIs

Working with Data

Creating a Simple JSON API with PHP

Working with Data Working with APIs

In this tutorial, you will create a simple API using PHP. The API will return JSON data when visited in a browser. This is the same type of data format used by many real-world APIs. Project Structure Create a folder called: api-demo Inside the folder place: ap...

Reading API Data with JavaScript

Working with Data Working with APIs

In the previous tutorial, you created a simple API using PHP. The API returns JSON data when visited in a browser. In this tutorial, you will use JavaScript to read data from the API and display it on a webpage. Project Structure Your project should contain: a...

Creating a Database-Driven API with PHP and MySQL

Working with Data Working with APIs

In the previous tutorials, the API returned data from a JSON file. In this tutorial, you will create an API that reads data from a MySQL database and returns it as JSON. The System Architecture The completed system will work like this: security_events table ...

Creating API Endpoints for Specific Data

Working with Data Working with APIs

In the previous tutorial, you created an API that returned every record from the security_events table. In this tutorial, you will create multiple API endpoints that return different types of data. This approach is commonly used in modern web applications. Wh...