PHP code example of joelalejandro / medoo-transactional
1. Go to this page and download the library: Download joelalejandro/medoo-transactional library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
joelalejandro / medoo-transactional example snippets
// Include Medoo (configured)
w medoo();
// Enjoy
$database->insert('account', [
'user_name' => 'foo'
'email' => '[email protected]',
'age' => 25,
'lang' => ['en', 'fr', 'jp', 'cn']
]);
// Or initialize via independent configuration
$database = new medoo([
'database_type' => 'mysql',
'database_name' => 'name',
'server' => 'localhost',
'username' => 'your_username',
'password' => 'your_password',
]);