PHP ODBC Progress OpenEdge Stays frozen

0

Good morning to everyone,

I'm trying to make a SQL query to a Progress database from php .. the result of the connection to me is returning to TRUE, which means that if I get connection to the database ..

My problem is when I do a query with odbc_exec (), stays Loading page forever, as if on forever loop .. then you add the script I'm trying to run ..

<?php    
function OpenCon()
{
$dsn = "BLUESAGE";
$usuario = "+++";
$pwd = "+++";

$conn = odbc_connect($dsn, $usuario, $pwd, SQL_CUR_USE_ODBC);

return $conn;


}


$conn = OpenCon();

$sql = "SELECT stname FROM st WHERE sid = '1'";

if ($conn)
{
   $resultado = odbc_exec($conn, $sql);
}
else
{
    echo "False";
}

odbc_close($conn);

I am running the script on a Windows Server with Progress DataDirect drivers

As the page keeps loading forever I never get the error of what is really happening ..

    
asked by Abraham Friessen 20.11.2018 в 18:55
source

0 answers