PHP code example of aweitian / sql-auto-gen
1. Go to this page and download the library: Download aweitian/sql-auto-gen 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/ */
aweitian / sql-auto-gen example snippets
$gen = new \Aw\Sql\Mysql\gen();
$gen->setConnection(new Aw\Db\Connection\Mysql (array(
'host' => '127.0.0.1',
'port' => '3306',
'user' => 'root',
'password' => 'root',
'charset' => 'utf8',
'database' => 'hdf'
)));
$gen->setTableName('data_article');