Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6622 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

can i query fm using sql?

if i install an odbc driver can i then use sql to get data out of and into fm?

i want to use php file and simply do a: ODBC_connect(dbname, user, password)

and then do a:

ODBC_query("select * from staff where id = '001';")

is this possible?

can it be that simple??

Posted

If you have Filemaker 7 or 8 server advanced you can manage data in Filemaker tables via ODBC. You will need the Data Direct Technologies ODBC drivers and will need to enable the ODBC extended permissions on the Filemaker files you want to access via ODBC. There is a ODBC manual which ships with the Server Advanced archive which is useful.

There are some limitations to how many records you can read or update at once, and you need to be aware of record locking issues if both Filemaker and ODBC are manipulating the same data tables. We have a prototype application in development so that Filemaker and our content management system (both Windows based) can interact, and it seems pretty solid so far.

Brian Rich

ruralnet|uk

www.ruralnet.org.uk

Posted

resolved!

i used this code:

<?php

$dsn = 'filemaker_client';

$uid = 'prepress';

$pwd = 'prepress';

// Connect to server

$conn = odbc_pconnect($dsn, $uid, $pwd);

$sql = 'SELECT * FROM Companies WHERE clientnumber=10100';

$rs = odbc_exec($conn, $sql);

$row = odbc_fetch_array($rs);

print_r($row);

?>

This topic is 6622 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.