[FX.php List] Re: FX.php_List Digest, Vol 24, Issue 52
FHASELTINE at aol.com
FHASELTINE at aol.com
Tue Aug 1 11:22:05 MDT 2006
I solved the server showing the old updated data by having a new page with
the same information pulled into the page a second time. The result was nice
because it showed the old data and the corrected data.
Also, I think that I was able to do it because I "mistakenly used $findrecord
as a variable but then did a variable called $update. The mistake actually
helped me out. The file name new.php was a full php page without the
include_once statements at the beginning.
<?php
include_once('FX/FX.php');
include_once('FX/server_data.php');
$ContactID = $_POST['id'];
$findrecord = new FX($serverIP,$webCompanionPort);
$findrecord -> SetDBData('DB.fp7','layout');
$findrecord -> AddDBParam('ContactID',$ContactID);
$findrecordResult = $findrecord -> FMFind();
foreach($findrecordResult['data'] as $key => $findrecordData);
$recordDetail = explode('.',$key);
$current_id = $recordDetail[0];
$update = new FX($serverIP,$webCompanionPort);
$update -> SetDBData('DB.fp7','layout');
$update -> AddDBParam('-recid',$current_id);
$update -> AddDBParam('BusinessTitle',$_POST['BusinessTitle']);
$updateResult = $update -> FMEdit();
/*echo $findrecordResult['errorCode'];*/
echo $updateResult['errorCode'];
if( $updateResult['errorCode'] == 0 ) {
?>
<!--Here is where the HTML Coding went.-->
<?php include('old.php') ?>
<?php include('new.php')?>
<?php }?>
Florence Haseltine
AIM: Fhaseltine
fhaseltine at aol.com
240-476-7837
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060801/5c0ccef9/attachment.html
More information about the FX.php_List
mailing list