Top Experts [
learn more
]
Top 4-10
webko
9743 K
bandmandq
2458 K
Genx
1525 K
4.
tcmeyers
5.
kbata
6.
Martie
7.
Hammerton
8.
rrenfrow
9.
bneeman
10.
plegler
Welcome,
Guest
. Please
login
or
register
.
June 20, 2013, 04:11:45 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Welcome to the FileMaker Web Masters Exchange. If you have any questions about how to use this forum, please watch the getting started movie at:
http://www.fmwebschool.com/movies/forum1/forum1.html
27508
Posts in
6074
Topics by
1524
Members
Latest Member:
fmwebster
fmwebschool.com
PHP Web Publishing Technologies
FileMaker PHP, FX.php custom web publishing
Fatal Error: call to undefined function SetDBData()
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: Fatal Error: call to undefined function SetDBData() (Read 1116 times)
jrough
Jr. Member
Offline
Posts: 46
Fatal Error: call to undefined function SetDBData()
«
on:
October 10, 2009, 04:42:58 PM »
Hi, sorry I'm having trouble getting this going.
I'm getting this error "undefined function":
"Fatal error: Call to undefined function SetDBData() in /Library/WebServer/Documents/fmquery.php on line 16". It can't find the FX.php function SetDBData, on line 16,
Below is my whole script. I can't find any errors. Could it be the problem is with the FMServer Advanced? I have the script file in the /Library/WebServer/Documents/. The database is in /Library/WebServer/Databases. The path to the required FX.php file is correct. The database is hosted on FM Server Advanced. I have the extended priviledges fmxml and fmphp for that account set. I really don't know what I should check next. Why is the function not getting called?
thankx,
<?php
require_once('FX/FX.php');
$serverIP = '192.168.1.40';
$webCompanionPort = '80';
$dataSourceType = 'FMPro9';
$webUN = 'Admin';
$webPW = 'jrough';
$database = 'map_4_.fp7';
$layout = "address";
$dataURLType = "HTTP";
$request = new FX($serverIP, $webCompanionPort, $dataSourceType, $dataURLType);
$request = SetDBData($database,$layout);
$request ->SetDBUserPassword($webUN, $webPW);
$request-> AddDBParam('id',$id);
$result = $fmQuery->FMFind();
$records = $result['data'];
if (strlen($records['linkNext'])< 1) {
echo "<span class=\"medgraytext\">Next</span>\n";
} else {
echo '<a href="'.$records['linkNext']."\" class=\"bbody\">Next[/url]\n";
}
?>
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
Offline
Posts: 4286
Kudos: 15522
Applications:
BlackBelt
(Guru)
FMTouch
(Guru)
Dolphin Cart Pro
(Guru)
FMStudio
(Guru)
USB Export
(Expert)
IPOST Web
(Expert)
Re: Fatal Error: call to undefined function SetDBData()
«
Reply #1 on:
October 11, 2009, 08:10:54 AM »
It is supposed to be $request->SetDBData() instead of $request = SetDBData(); Since you are calling the function SetDBData on the request object, and not assigning the result of the function to the request object.
Logged
Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on
Twitter
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Discussion and Announcements
-----------------------------
=> FMWebschools updates and announcements
===> FMWebschool Training Schedule
=> Newsletter and Community Discussion
=> Webinar and FMWebschool Events
=> General Discussion
===> CDML Old School FileMaker Web Publishing
===> FileMaker Mobile 7/8
=> Holiday Special Product Support
-----------------------------
FMTouch
-----------------------------
=> FMTouch - FileMaker Databases on the iPhone and iPod iTouch
===> FMTouch - Multi Language Discussion
=> FMTouch BlackBerry and FileMaker
-----------------------------
FMStudio
-----------------------------
=> FMStudio
===> FMStudio Connection and Installation Problems
=> FMStudio Pro
-----------------------------
FMWebschool Products and Solutions
-----------------------------
=> Dolphin Shopping Cart System
=> BlackBelt CDML Software
-----------------------------
FileMaker Books
-----------------------------
=> FileMaker Book Questions and Suggestions
-----------------------------
PHP Web Publishing Technologies
-----------------------------
=> FileMaker's New PHP API
=> FileMaker PHP, FX.php custom web publishing
===> Ajax Code and Examples
-----------------------------
FileMaker Inc Products and Technologies
-----------------------------
=> FileMaker Server 9
===> FileMaker Server 7 / 8 Advanced
=> Web Viewer
=> Instant Web Publishing
=> FileMaker XML, XSLT
-----------------------------
Other Resources
-----------------------------
=> Search Engine Optimization and Consulting
===> Marketing Book Reviews
=> FileMaker Web Resources
=> Free JavaScript Code Snips
=> Free PHP Code Snips
=> Web Jobs, Web Consulting
Loading...