tinyqc/v1/config.php
mahdahar ff90e0eb29 Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00

19 lines
571 B
PHP

<?php
$serverName = "localhost";
$db1 = "cmod_qc";
//$db2 = "summitmod";
$connectionInfo = array( "Database"=>$db1, "UID"=>"sa", "PWD"=>"Summittso4516728");
$conn1 = sqlsrv_connect( $serverName, $connectionInfo);
if( !$conn1 ) {
echo "Connection 1 could not be established.<br />";
die( print_r( sqlsrv_errors(), true));
}
/*
$connectionInfo = array( "Database"=>$db2, "UID"=>"td", "PWD"=>"td");
$conn2 = sqlsrv_connect( $serverName, $connectionInfo);
if( !$conn2 ) {
echo "Connection 2 could not be established.<br />";
die( print_r( sqlsrv_errors(), true));
}
*/
?>