note 43145 rejected from function.odbc-connect by vincent
| From: | vincent@php.net | Date: | Thu, 10 Jun 2004 20:04:05 +0000 |
| Subject: | note 43145 rejected from function.odbc-connect by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70902@lists.php.net to get a copy of this message | ||
Note Submitter: omar_flores_60@hotmail.com
----
my O.S. is Windows 2000 pro and apache 1.3.12 and PHP 4.3.6
I try myself to connect to a data base MS ACCESS with the following code
<?php
//conexion con el servicio de DSN de ODBC
$conexion = odbc_connect("acces", "", "", SQL_CUR_USE_ODBC);
if (!conexion)
{
echo ( " Error 1: no contesta el servidor. <p>");
}
// Definicion de la consulta
$query = "select PHORD, PHATTN from OMAR_HPH";
print $query;
// Ejecucion de la consulta
$resultado = @odbc_exec( $conexion, $query );
if (! $resultado)
{
echo ( " Error 3: Resultado vacio: <br>.");
echo ( " $query.<br>);
return;
}
// Escritura de los resultados.
while ( odbc_fetch_row( $resultado ) );
{
echo( odbc_result( $resultado , 'PHORD' ) );
echo( " " );
echo(odbc_result( $resultado, 'PHATTN' ));
echo( "<br>" );
}
//LIberacion del cursor y cierre de la conexion
odbc_free_result($resultado);*/
odbc_close( $conexion );
?>
but the browser says to me that the problems this one in the line 30
someone can help me