You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
511 B
20 lines
511 B
<?php
|
|
require_once 'vendor/autoload.php';
|
|
|
|
use Doctrine\DBAL\DriverManager;
|
|
|
|
$connectionParams = [
|
|
'dbname' => 'masada_test',
|
|
'user' => 'masadaroot',
|
|
'password' => 'x6h5E5p#u8y',
|
|
'host' => 'db-104.coowo.com:3306',
|
|
'driver' => 'pdo_mysql',
|
|
];
|
|
$conn = DriverManager::getConnection($connectionParams);
|
|
|
|
$sql = "SELECT * FROM kanban_cc";
|
|
$stmt = $conn->query($sql); // Simple, but has several drawba
|
|
|
|
while (($row = $stmt->fetchAssociative()) !== false) {
|
|
echo $row['employee_no'] . "\n";
|
|
}
|
|
|