Location: PHPKode > projects > Thin PHP Framework > ngduc-Thin-PHP-Framework-6f99097/tool/setup-db/index.php
	<title>Setup DB</title>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		body { font-family: verdana; padding: 5px; }
		#info { background-color: #ddd; padding: 5px; }

	include 'connect.php';
	$dbh = connect_DB() or die('Cannot connect to DB!');
	$dbdriver = '';
	if ($dbenv[dbdriver] == 1) $dbdriver = 'SQLITE';
	if ($dbenv[dbdriver] == 2) $dbdriver = 'MYSQL';
		<div id="info">
			$dbdriver - Host: $dbenv[host] - DB: $dbenv[dbname] <p/>** For MySQL, Make sure you create DB first. <br/>** Verify SQL script file: prepare_tables_*.sql files. <p/>
	echo $html;
	<p/><h3>Recreate and Setup Database:</h3><p/>
		<li><a href="create_tables.php">Create Tables</a></li>
		<li><a href="create_data.php">Create Data</a></li>
Return current item: Thin PHP Framework