Hvad er fejlen?
Har følgende kode:<html>
<head>
<title>PHP test side</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
$connect = odbc_connect( "db1", "", "" );
$query = "SELECT * FROM tabel" ;
$result = odbc_do( $connect, $query );
while( odbc_fetch_into( $result, &$fields ) )
{
echo $fields[0];
}
?>
</body>
</html>
får følgende fejl:
Warning: SQL error: [Microsoft][ODBC Driver Manager] Datakildenavnet blev ikke fundet, og der er ikke angivet en standarddriver., SQL state IM002 in SQLConnect in C:\Inetpub\wwwroot\index.php on line 9
Warning: odbc_do(): supplied argument is not a valid ODBC-Link resource in C:\Inetpub\wwwroot\index.php on line 11
Warning: odbc_fetch_into(): supplied argument is not a valid ODBC result resource in C:\Inetpub\wwwroot\index.php on line 13
se evt. http://www.eksperten.dk/spm/253305
