Link to home
Create AccountLog in
Avatar of pingeyeg
pingeyeg

asked on

I have an error on my form

I have a PHP form (see attached) that is loaded on my server and on my clients server. The attached page works on my server but it does not work on my clients server. I have trouble shot everything I can think of and have run out of time. Hopefully you can give me a definitive answer.

I receive the following error message when trying it on my clients server.

Fatal error: Call to undefined method FileMaker_Error::getFirstRecord() in
/Library/WebServer/Documents/Bluewater/browserecords.php on line 117
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<?php
/**
    * FileMaker PHP Site Assistant Generated File
    *
    *
    * Copyright 2007, FileMaker, Inc.  All rights reserved.
    * NOTE: Use of this source code is subject to the terms of the FileMaker
    * Software License which accompanies the code. Your use of this source code
    * signifies your agreement to such license terms and conditions. Except as
    * expressly granted in the Software License, no other copyright, patent, or
    * other intellectual property license or right is granted, either expressly or
    * by implication, by FileMaker.
    *
    */
 
    require_once 'fmview.php';
    require_once 'FileMaker.php';
    require_once 'error.php';
 
    $cgi = new CGI();
    $cgi->storeFile();
    $databaseName = 'Pilotsheet';
    $layoutName = 'PUSH';
    $userName = 'web';
    $passWord = 'web123';
	
 
    $fm = & new FileMaker();
    $fm->setProperty('database', $databaseName);
    $fm->setProperty('username', $userName);
    $fm->setProperty('password', $passWord);
    
    ExitOnError($fm);
    $layout = $fm->getLayout($layoutName);
    ExitOnError($layout);
 
    // formats for dates and times
    $displayDateFormat = '%m/%d/%Y';
    $displayTimeFormat = '%I:%M %P';
    $displayDateTimeFormat = '%m/%d/%Y %I:%M %P';
    $submitDateOrder = 'mdy';
 
    $record = NULL;
    $response = NULL;
    $random = $cgi->get('-random');
	$action = $cgi->get('-action');
    $recid = $cgi->get('-recid');
	
    switch ($action) {
        case "delete" :
            {
                include "deleterecord.php";
                break;
            }
        case "duplicate" :
            {
 
                //  create a new duplicate command
                $duplicateCommand = $fm->newDuplicateCommand($layoutName, $recid);
                $result = $duplicateCommand->execute();
                ExitOnError($result);
 
                //  the result contains the record
                $records = $result->getRecords();
                $record = $records[0];
 
                //  store the recid so we can display the duplicated record in the browse page
                $cgi->store('-recid', $record->getRecordId());
                break;
            }
        case "edit" :
            {
                $recid = $cgi->get('-recid');
 
                // create an edit command for the record specified by the '-recid'
                $editCommand = $fm->newEditCommand($layoutName, $recid);
                ExitOnError($editCommand);
 
                // get the posted record data from the edit page
                $recorddata = $cgi->get('recorddata');
                if (isset ($recorddata)) {
                    $response = submitRecordData($recorddata, $editCommand, $cgi, $layout->listFields());
                    $cgi->clear('recorddata');
                    ExitOnError($response);
                }
 
                // now get the record we just edited
                $record = $fm->getRecordById($layoutName, $recid);
                break;
            }
        case "new" :
            {
 
                // create the new add command
                $newrecordrequest = $fm->newAddCommand($layoutName);
                ExitOnError($newrecordrequest);
 
                // get the submitted record data
                $recorddata = $cgi->get('recorddata');
                if (isset ($recorddata)) {
 
                    //  submit the data to the db
                    $result = submitRecordData($recorddata, $newrecordrequest, $cgi, $layout->listFields());
 
                    //  clear the stored record data
                    $cgi->clear('recorddata');
                    ExitOnError($result);
                } else {
                    $findallCommand = $fm->newFindAllCommand($layoutName);
                    $result = $findallCommand->execute();
                }
                if ($result->getFetchCount() > 0) {
                    $records = $result->getRecords();
                    $record = $records[0];
                    $recid = $record->getRecordId();
                } else {
                    DisplayError('No Records are present.');
                }
 
                break;
            }
        case "browse" :
        default :
            {
                $findCommand=& $fm->newFindCommand('PUSH');
				$findCommand->addFindCriterion('RandomKey',$random);
				$result = $findCommand->execute();
				$record = $result->getFirstRecord();
				break;
            }
    }
	?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>
            Bluewater Pilotsheet
        </title>
        <link rel="stylesheet" type="text/css" media="screen" href="cubed_blue.css">
        <style type="text/css">
<!--
.style2 {
	font-size: xx-large;
	color: #FFFFFF;
}
.style3 {font-size: 12px}
.style4 {color: #000000}
.style6 {color: #000000; font-weight: bold; }
.style7 {
	font-size: 10px;
	font-weight: bold;
	color: #FFFFFF;
}
.style8 {
	font-size: 10px;
	font-family: Arial, Helvetica, sans-serif;
	color: #FFFFFF;
}
-->
        </style>
    </head>
    <body>
        
            <!--HEADER-->
            <div id="header">
                <h1 align="left"><img src="images/img_1.jpg" width="883" height="171">
                <span class="browse_header"> </span>   </h1>
       
            <!--Navigation Menu-->
            <!--PAGE BODY-->
          <div id="content">
            <form method="post" action="editrecord.php"><div align="center">
                <p>
                <input type="hidden" name="-db" value="<?php echo $databaseName ?>"> 
                <input type="hidden" name="-lay" value="<?php echo $layoutName ?>"> 
                <input type="hidden"
                    name="-recid" value="<?php echo $recid ?>"> 
                </p>
                <p>&nbsp;                </p>
            </div>
                    <table width="800" height="1556" border="1" align="left" bordercolor="#FFFFFF" class="record">
                      <!-- Display record field values -->
                      <tr align="center" bordercolor="#CCCCCC" class="field">
                        <td height="40" colspan="5" class="field"><div align="center"><span class="browse_header style2"></span></div>                          <span class="browse_header style2"><strong><?php echo $record->getField('VESSEL', 0)?></strong></span></td>
                      </tr>
                      <tr align="center" bordercolor="#CCCCCC" class="field">
                        <td colspan="4" class="field"><div align="center"> </div>                          <img src="<?php echo getImageURL( $record->getField('Photo1', 0))?>"></td>
                      <td width="400" valign="bottom" class="field style7">Completion Details </td>
                      </tr>
                      <tr align="center" valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="35" colspan="4" bordercolor="#CCCCCC"><div align="center"></div>
                          <table border="1" align="center" cellpadding="5">
                          <tr>
                            <th scope="col">Berths</th>
                            <th scope="col">Cargo </th>
                            <th scope="col">ETB</th>
                            <th scope="col">ETD</th>
                          </tr>
                          <tr align="center" class="field_data">
                            <td class="field_data"><div align="center"><?php echo $record->getField('BERTH 1', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('CARGO 1', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('ETB 1', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('ETD 1', 0)?></div></td>
                          </tr>
                          <tr align="center" class="field_data">
                            <td class="field_data"><div align="center"><?php echo $record->getField('BERTH 2', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('CARGO 2', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('ETB 2', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('ETD 2', 0)?></div></td>
                          </tr>
                          <tr align="center" class="field_data">
                            <td class="field_data"><div align="center"><?php echo $record->getField('BERTH 3', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('CARGO 3', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('ETB 3', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('ETD 3', 0)?></div></td>
                          </tr>
                          <tr align="center" class="field_data">
                            <td class="field_data"><div align="center"><?php echo $record->getField('BERTH 4', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('CARGO 4', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('ETB 4', 0)?></div></td>
                            <td class="field_data"><div align="center"><?php echo $record->getField('ETD 4', 0)?></div></td>
                          </tr>
                        </table>
                          <div align="center"></div>
                        <div align="center"></div></td>
                      <td width="400" rowspan="28" bordercolor="#CCCCCC"><div align="left" class="style8"><?php echo $record->getField('Sailing Message Notes', 0)?></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="35" bordercolor="#CCCCCC" class="field_name">ETA:</td>
                        <td class="field_data"><table border="0">
                          <tr>
                            <th scope="col"><?php echo $record->getField('ETA TIME', 0)?></th>
                            <th scope="col">-</th>
                            <th scope="col"><?php echo $record->getField('ETA DATE', 0)?></th>
                            <th scope="col">&nbsp;</th>
                          </tr>
                        </table></td>
                        <td bordercolor="#CCCCCC" class="field_name">&nbsp;</td>
                        <td bordercolor="#CCCCCC" class="field_data">&nbsp;</td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td width="123" height="35" bordercolor="#CCCCCC" class="field_name"><div align="right">MASTER: </div></td>
                        <td width="370" class="field_data"><?php echo $record->getField('MASTER:', 0)?>
                            <div align="left"></div></td>
                        <td width="109" bordercolor="#CCCCCC" class="field_name"><div align="right">DATED: </div></td>
                        <td width="261" bordercolor="#CCCCCC" class="field_data"><?php echo $record->getField('SOF HEADER DATED:', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="38" class="field_name"><div align="right">FLAG </div></td>
                        <td width="370" class="field_data"><?php echo $record->getField('FLAG', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right"></div></td>
                        <td class="field_data"><div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="33" class="field_name"><div align="right">Registered Net Tons: </div></td>
                        <td width="370" class="field_data"><?php echo $record->getField('NRT', 0)?>
                            <div align="left"></div></td>
                        <td class="field_data"><div align="right"></div></td>
                        <td class="field_data"><div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="39" class="field_name"><div align="right">Registered Gross Tons: </div></td>
                        <td width="370" class="field_data"><?php echo $record->getField('GRT', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">Mobile Phone: </div></td>
                        <td class="field_data"><?php echo $record->getField('RADIO #:', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="33" class="field_name"><div align="right">Summer Dead Weight: </div></td>
                        <td class="field_data"><?php echo $record->getField('DWT', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">Previous Cargoes: </div></td>
                        <td class="field_data"><?php echo $record->getField('Previous Cargoes', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="38" class="field_name"><div align="right">IMO #: </div></td>
                        <td class="field_data"><?php echo $record->getField('IMO/LR Number', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name">Call Sign: </td>
                        <td class="field_data"><?php echo $record->getField('CALL SIGN', 0)?> </td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="34" class="field_name">SATCOM </td>
                        <td colspan="3" class="field_data"><?php echo $record->getField('SATCOM', 0)?> </td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="40" class="field_name"><div align="right"><span class="field_data"><?php echo $record->getField('SOF HEADER CUSTOMER TYPE 1:', 0)?> </span></div></td>
                        <td class="field_data"><?php echo $record->getField('SOF HEADER CUSTOMER 1:', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">Built:</div></td>
                        <td class="field_data"><?php echo $record->getField('Built (Country)', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="35" class="field_name"><div align="right"><span class="field_data"><?php echo $record->getField('SOF HEADER CUSTOMER TYPE 2:', 0)?> </span></div></td>
                        <td class="field_data"><?php echo $record->getField('SOF HEADER CUSTOMER 2:', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">Year:</div></td>
                        <td class="field_data"><?php echo $record->getField('Built', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="30" class="field_name"><div align="right"><span class="field_data"><?php echo $record->getField('SOF HEADER CUSTOMER TYPE 3:', 0)?> </span></div></td>
                        <td class="field_data"><?php echo $record->getField('SOF HEADER CUSTOMER 3:', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">Summer Draft : </div></td>
                        <td class="field_data"><?php echo $record->getField('Summer Draft', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="35" class="field_name"><div align="right">Registered Owner: </div></td>
                        <td class="field_data"><?php echo $record->getField('OWNER OPERATOR NAME', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">TPI/C: </div></td>
                        <td class="field_data"><?php echo $record->getField('TPI/C:', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="35" class="field_name"><div align="right">Berth/S:</div></td>
                        <td class="field_data"><?php echo $record->getField('SOF HEADER BERTHS:', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">FWA: </div></td>
                        <td class="field_data"><?php echo $record->getField('FWA:', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="33" class="field_name"><div align="right">Destination:</div></td>
                        <td class="field_data"><?php echo $record->getField('NEXT PORT', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">SMR FBD: </div></td>
                        <td class="field_data"><?php echo $record->getField('Summer Freeboard', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="39" class="field_name"><div align="right">Cargo:</div></td>
                        <td class="field_data"><?php echo $record->getField('SOF HEADER CARGO DESCRIPTION:', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">LOA:</div>
                            <div align="left"></div></td>
                        <td><div align="right">
                            <table width="228" align="left">
                              <tr align="left" valign="top">
                                <td width="17" class="field_data"><?php echo $record->getField('LOA METERS', 0)?></td>
                                <td width="60" valign="middle"><div align="left" class="style3">Meters or</div></td>
                                <td width="17" class="field_data"><?php echo $record->getField('LOA', 0)?></td>
                                <td width="42" valign="middle"><div align="left"></div>
                                    <div align="left" class="style3">Feet</div></td>
                              </tr>
                            </table>
                          </div>
                            <div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="38" class="field_name">&nbsp;</td>
                        <td class="field_data">&nbsp;</td>
                        <td class="field_name"><div align="right">BEAM:</div>
                            <div align="left"></div></td>
                        <td><div align="right">
                            <table width="228" align="left">
                              <tr align="left" valign="top">
                                <td width="26" class="field_data"><?php echo $record->getField('BEAM METERS', 0)?></td>
                                <td width="92" valign="middle"><div align="left" class="style3">Meters or</div></td>
                                <td width="25" class="field_data"><?php echo $record->getField('BEAM FEET', 0)?></td>
                                <td width="65" valign="middle"><div align="left"></div>
                                    <div align="left" class="style3">Feet</div></td>
                              </tr>
                            </table>
                          </div>
                            <div align="left"></div></td>
                      </tr>
                      <tr bordercolor="#CCCCCC" class="field">
                        <td height="38" valign="top" class="field_name"><div align="right">C/P Fixture : </div></td>
                        <td valign="top" class="field_data"><?php echo $record->getField('Cargo CP Fixture', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name">&nbsp;</td>
                        <td class="field_data">&nbsp;</td>
                      </tr>
                      <tr bordercolor="#CCCCCC" class="field">
                        <td colspan="4" class="field_data"><?php echo $record->getField('Prostowage Notes', 0)?>
                            <div align="left"></div></td>
                      </tr>
                      <tr bordercolor="#CCCCCC" class="field">
                        <td height="28" class="field_name"><div align="right"></div></td>
                        <td width="370" class="field_data"><div align="left"></div></td>
                        <td class="field_data"><div align="right"></div></td>
                        <td class="field_data"><div align="left"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="42" class="field_name"><div align="right">Est. Sailing Drafts: FWD: </div></td>
                        <td class="field_data"><?php echo $record->getField('Draft Out Fwd', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">Aft:</div></td>
                        <td class="field_data"><div align="left"><?php echo $record->getField('Draft Out', 0)?> </div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="40" class="field_name"><div align="right">EST DISP ARRIVAL DRAFT FWD </div></td>
                        <td class="field_data"><?php echo $record->getField('EST DISP ARRIVAL DRAFT FWD', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name">Aft:</td>
                        <td class="field_data"><?php echo $record->getField('EST DISP ARRIVAL DRAFT AFT', 0)?> </td>
                      </tr>
                      <tr bordercolor="#CCCCCC" class="field">
                        <td height="194" colspan="4" valign="top" class="field_data"><table border="1" align="center">
                            <tr>
                              <td colspan="2"><span class="style4 field_name"><strong>Conditions on Arrival</strong></span></td>
                              <td align="center">&nbsp;</td>
                              <td colspan="2"><span class="style4 field_name"><strong>Conditions on Departure </strong></span></td>
                            </tr>
                            <tr>
                              <td align="right"><?php echo $record->getField('ARVL FO ROB', 0)?>
                                  <div align="right"></div></td>
                              <td><span class="style4">M/T </span></td>
                              <td align="center"><span class="style6">Fuel Oil</span></td>
                              <td align="right"><div align="center"></div>
                                  <?php echo $record->getField('DEPT FO ROB', 0)?></td>
                              <td><span class="field_name style4">M/T</span></td>
                            </tr>
                            <tr>
                              <td align="right"><?php echo $record->getField('ARVL DO ROB', 0)?>
                                  <div align="right"></div></td>
                              <td><span class="field_name style4">M/T</span></td>
                              <td align="center"><span class="style6">Diesel Oil</span></td>
                              <td align="right"><?php echo $record->getField('DEPT DO ROB', 0)?> </td>
                              <td><span class="field_name style4">M/T</span></td>
                            </tr>
                            <tr>
                              <td align="right"><?php echo $record->getField('ARVL FW ROB', 0)?>
                                  <div align="right"></div></td>
                              <td><span class="field_name style4">M/T</span></td>
                              <td align="center"><span class="style6">Fresh Water</span></td>
                              <td align="right"><?php echo $record->getField('DEPT FW ROB', 0)?> </td>
                              <td><span class="field_name style4">M/T</span></td>
                            </tr>
                            <tr>
                              <td align="right"><?php echo $record->getField('ARVL DRAFT FWD', 0)?>
                                  <div align="right"></div></td>
                              <td><span class="field_name style4">FWD</span></td>
                              <td align="center"><span class="style6">Draft FWD</span></td>
                              <td align="right"><?php echo $record->getField('DEPT DRAFT FWD', 0)?></td>
                              <td><span class="field_name style4">FWD</span></td>
                            </tr>
                            <tr>
                              <td align="right"><?php echo $record->getField('ARVL DRAFT AFT', 0)?>
                                  <div align="right"></div></td>
                              <td><span class="field_name style4">AFT</span></td>
                              <td align="center"><span class="style6">Draft Aft</span></td>
                              <td align="right"><?php echo $record->getField('DEPT DRAFT AFT', 0)?> </td>
                              <td><span class="field_name style4">AFT</span></td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td><span class="field_name"></span></td>
                              <td align="center"><span class="style6">Draft Midship</span></td>
                              <td align="right"><?php echo $record->getField('DEPT DRAFT MID', 0)?> </td>
                              <td><span class="field_name style4">Mid</span></td>
                            </tr>
                          </table>
                            <div align="center"></div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="40" class="field_name"><div align="right">NCB Passed: </div></td>
                        <td class="field_data"><?php echo $record->getField('NCB', 0)?>
                            <div align="left"></div></td>
                        <td class="field_name"><div align="right">HRS</div></td>
                        <td class="field_data"><div align="left"><?php echo displayDate( $record->getField('NCB PASS DATE:', 0), $displayDateFormat)?> </div></td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="39" class="field_name">USDA Passed: </td>
                        <td class="field_data"><?php echo $record->getField('USDA', 0)?> </td>
                        <td class="field_name">HRS</td>
                        <td class="field_data"><?php echo displayDate( $record->getField('USDA PASS DATE:', 0), $displayDateFormat)?> </td>
                      </tr>
                      <tr valign="top" bordercolor="#CCCCCC" class="field">
                        <td height="40" class="field_name">NOR Accepted:</td>
                        <td class="field_data"><?php echo displayTime( $record->getField('NOR ACCP-HR', 0), $displayTimeFormat)?> </td>
                        <td class="field_name">HRS</td>
                        <td class="field_data"><?php echo displayDate( $record->getField('NOR ACCP-DD', 0), $displayDateFormat)?> </td>
                      </tr>
                      <tr bordercolor="#CCCCCC" class="field">
                        <td colspan="4" class="field_data"><div align="right"></div>
                            <?php echo $record->getField('Bunker Notes', 0)?>
                            <div align="left"></div>
                            <div align="right"></div>
                            <div align="left"></div></td>
                      </tr>
                      <!--Display record form controls-->
                      <tr class="submit_btn">
                        <td colspan="4">
                            <div align="center">
                              <input type="submit" name="-find" value="Edit Record">
                            </div></td>
                      </tr>
              </table>
            </form>
              </div>
        </div>
    </body>
</html>

Open in new window

Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

There are 3 other files accessed by the page you've copied and pasted:
    require_once 'fmview.php';
    require_once 'FileMaker.php';
    require_once 'error.php';

Are they all present, and in the same directory as the page you're trying to view?
Also, the following lines:
                        $result = $findCommand->execute();
                        $record = $result->getFirstRecord();
don't seem to allow for the possibility that no records are returned. Could that be the problem?
Avatar of pingeyeg
pingeyeg

ASKER

I can possibly get those three files for you, but right now they are not available for view.  So you don't think it has anything to do with the function getFirstRecord()?
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account