January 17, 201411 yr 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.
January 17, 201411 yr 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.
January 17, 201411 yr Author 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.
January 17, 201411 yr I thought you had already written some PHP code... so I"m a little lost know. What have you developed so far for your website for people to connect to and use FM data?
January 17, 201411 yr Author 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.
Create an account or sign in to comment