What are the potential drawbacks of creating an online shop without using SQL or any database?

Potential drawbacks of creating an online shop without using SQL or any database include limited scalability, difficulty in managing and organizing data, and increased risk of data loss or corruption. To solve this issue, you can consider using a lightweight database system like SQLite or implementing a flat-file database system to store and retrieve data efficiently.

// Example of using SQLite database in PHP
try {
    $db = new SQLite3('shop.db');
    $db->exec('CREATE TABLE products (id INTEGER PRIMARY KEY, name TEXT, price REAL)');
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}