[fx.php_list] Re: Stupid little script and it won't work...

  • From: Driftwood Interactive <mark@xxxxxxxxxxxxxxxxxxxxxxxx>
  • To: "fx.php_list@xxxxxxxxxxxxx" <fx.php_list@xxxxxxxxxxxxx>, "fx.php_list@xxxxxxxxxxxxx" <fx.php_list@xxxxxxxxxxxxx>
  • Date: Thu, 24 Oct 2019 00:48:08 +0000

Have you tried dumping out $qResult with var_export to see what was returned?

Mark DeNyse
508-514-1010


________________________________
From: fx.php_list-bounce@xxxxxxxxxxxxx on behalf of Bob Patin <bob@xxxxxxxxx>
Sent: Wednesday, October 23, 2019 7:04 PM
To: FX List
Subject: [fx.php_list] Stupid little script and it won't work...

I have this:

$recid = $_SESSION['recid'];
echo 'Recid: '.$recid;
$q =new FX($serverIP,$webCompanionPort, $dataType, $scheme);
$q->SetDBData($dbname,'vendors_new_hire');
$q->SetDBPassword($webpw,$webun);
$q->AddDBParam('recid','=='.$recid);
$qResult = $q->FMFind();

echo ' -- Records found: '.$qResult['foundCount'];
foreach($qResult['data'] as $key=>$qData){
$name_first = $qData['name_first'][0];
echo $name_first;

$recid = 1268; 1 record is found, as it should; there is a field called 
"name_first" with my first name in it, but I get nothing back.

What am I missing here?


Bob Patin
Longterm Solutions
bob@xxxxxxxxxxxxxxxxxxxxx<mailto:bob@xxxxxxxxxxxxxxxxxxxxx>
615-333-6858
FileMaker Certified Developer
http://www.longtermsolutions.com
-
FileMaker Consulting
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting

Other related posts: