What are some small projects that PHP beginners can start with to improve their skills in PHP, OOP, and MYSQL?

One small project that PHP beginners can start with to improve their skills in PHP, OOP, and MYSQL is creating a simple CRUD (Create, Read, Update, Delete) application. This project will help beginners understand how to interact with a database using MYSQL, implement Object-Oriented Programming (OOP) principles, and practice basic PHP syntax.

<?php
// Connect to database
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";

$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

// Create a new record
$sql = "INSERT INTO users (name, email) VALUES ('John Doe', 'john@example.com')";
if ($conn->query($sql) === TRUE) {
    echo "New record created successfully";
} else {
    echo "Error: " . $sql . "<br>" . $conn->error;
}

// Close the connection
$conn->close();
?>