koyabu/database-connection

MySQLi Database Connection

dev-main 2024-06-16 07:37 UTC

This package is auto-updated.

Last update: 2024-06-17 03:50:03 UTC


README

Cara Install

Menggunakan Composer

composer require koyabu/database-connection

Contoh penggunaan: test.php

<?php
// How to use
// Sample
$config['host'] = 'localhost';
$config['user'] = 'root';
$config['pass'] = '';
$config['data'] = 'test';

require 'vendor/autoload.php';

use Koyabu\DatabaseConnection\Connection as DatabaseConnect;
$Database = new DatabaseConnect($config);

/*
$Database->query("INSERT INTO `test` (id,name) VALUES (1,'TEST')");

$QRY = $Database->query("select * from `test`");
$RESULT = $Database->fetch_assoc($QRY);
*/
?>