<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252">
<title>Insert title here</title>
</head>
<body>
<p>MySQL Test</p>
<?php
require_once ('MySQL.php');
require_once ('config.php');
$connection = new Database($host, $database, $user, $password);
$dataTable = $connection->Execute('SELECT * FROM EMP');
$content = null;
while ($dataTable->MoveNext()) {
$content .= "$dataTable->E_ID<br>";
// or use:
//$content .= $dt->Field(0) . "<br>";
}
echo $content;
?>
</body>
</html>
|