Preview:
<?php
    include 'config.php';

    $name = $_POST['name'];
    $message = $_POST['message'];
    $date = $_POST['date'];
    
    $sql = "INSERT INTO demo(name, message) VALUES ('$name', '$message')";
    $result = mysqli_query($conn, $sql);

    if ($result) {
        echo 1;
    }else {
        echo 0;
    }
?>
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter