<?php 


require 'vendor/autoload.php';

// Using Medoo namespace
use Medoo\Medoo;

// Initialize
$database = new Medoo([
    'database_type' => 'mysql',
    'database_name' => 'wp5',
    'server' => 'localhost',
    'username' => 'root',
    'password' => 'Pass@123'
]);

$faker = Faker\Factory::create();

for($i=0;  $i<32; $i++){
    
    $form_value = [
        'your-name' => $faker->name,
        'your-email' => $faker->email,
        'your-subject' => $faker->address,
        'your-message' => $faker->text,
    ];

    $database->insert('wp_db7_forms', [
        'form_post_id' => 3404,
        'form_value' => serialize($form_value),
        'form_date' => date('Y-m-d')
    ]);
}