<html>
<head>
</head>
<body><pre>
<?php
$connection =
odbc_connect("test","root","passwd");
$query = odbc_exec($connection, "SELECT * FROM
People");
while ($row = odbc_fetch_row($result))
{
for ($i=0; $i<odbc_num_fields($result);$i++)
echo $row[$i] . " ";
echo "\n";
}
odbc_close($connection);
?>
</pre>
</body>
</html>
I got an error msg
Notice: Undefined variable: result in C:\Apache2\htdocs\test3.php on
line 14
Warning: odbc_fetch_row(): supplied argument is not a valid ODBC
result resource in C:\Apache2\htdocs\test3.php on line 14
thank in adv