Jump to content
Server Maintenance This Week. ×

How do I get a FMS database onto my own website


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

Recommended Posts

  • Newbies

Hi,

Im a complete beginner with FileMaker server. I have been working with FileMaker pro for the last 2 months. Thats my experience level. I felt should say that first. 

Im trying to get my FileMaker database which I have created to go onto my own website (www.mywebsite.com). But I'm completely stuck. I have gone through the manuals writing some PHP onto my website but I'm pretty sure I'm missing a step or three!


So I have uploaded the database onto my FileMaker server from FileMaker pro. What are the next steps after that? 


Any help would be gladly appreciated. 

 

Link to comment
Share on other sites

  • Newbies

The PHP code that is loaded on your website should make a connection to the files hosted on your FMS machine.

You don't put the FM file itself on the web server.

What PHP code  am I meant to fill in?

I must have been filling in the wrong PHP code before.

Link to comment
Share on other sites

  • Newbies

Sorry. Thanks for replying. 

I did some php work but I wasnt able to connect the database to the website with the PHP code I used. I figured I was doing the wrong commands. 

This is an example of what I was trying; 

$connection =& new FileMaker('My Database', 'myserver');
$connection->setProperty('username', 'php');
$connection->setProperty('password', 'mypassword');

$cmd =& $connection->newFindCommand('My Layout');
$records = $result->getRecords();
foreach ($records as $record) { echo 'First Name: ' . $record->getField('First Name') . '<br>';
echo 'Last Name: ' . $record->getField('Last Name') . '<br>';
echo 'Email Address: ' . $record->getField('Email Address') . '<br>';
echo '<hr>';
}

 

 

We haven't made the connection to get the data online yet. So far I have created the data which I want to put online on my FileMaker Pro, but I don't know the exact PHP code to use. I have done some trials with some other PHP codes but still haven't been able to get anything to show. 

Link to comment
Share on other sites

This topic is 3767 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.