Filemaker and PHP ODBC problems

admin

Administrator
Staff member
Hi all

I have been playing with getting php to access a filemaker database using odbc under windows.

But I have had some problems, my webpage will work fine if I use an access based DSN, but if I use a filemaker based DSN it just hangs at connection time.

This is the code:
$connection=odbc_pconnect("fmtest","","",SQL_CUR_DEFAULT);
if(!$connection)
{
echo "Could not connect to TEST<br>";
exit;
}

// echo odbc_errormsg($connection);

$tablelist = odbc_tables($connection);
while (odbc_fetch_row($tablelist))
{
echo odbc_result_all($tablelist);
}

odbc_close($connection);
 
Back
Top