PHP code example of cahkampung / landa-db

1. Go to this page and download the library: Download cahkampung/landa-db 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/ */

    

cahkampung / landa-db example snippets


$data = [
  'name' => 'john',
  'email' => '[email protected]'
];

$db->insert('user_table', $data);

$data = [
  'name' => 'john',
  'email' => '[email protected]'
];

$db->update('user_table', $data, ['id' => 1]);

$db->delete('user_table', ['id' => 1]);