ODBC (Unified)

Коментарии

I have problems with php5-recode and php5-odbc. With both packages installed, odbc_execute() hangs up causing Segmentation Fault. I was using a simple script to test that:

<?php
#DSN "mydb" with a user and password "marin"
$connect odbc_connect("myaccess""""");

# query the users table for name and surname
$query "SELECT * FROM FRT_NAME";

# perform the query
$result odbc_exec($connect$query);

# fetch the data from the database
while(odbc_fetch_row($result)){
       
$name odbc_result($result2);
        print(
"$name\n");
}

# close the connection
 
odbc_close($connect);
?>

After uninstalling php5-recode, the issue is solved.
2014-03-28 13:37:11
http://php5.kiev.ua/manual/ru/book.uodbc.html

    Поддержать сайт на родительском проекте КГБ