[FX.php List] Saving large text fields

Phil Goodman Philip.Goodman at bechtle.co.uk
Wed Jan 18 10:40:04 MST 2006


I have read and re-read the documentation and this list and I still
don't understand how to make this work.
 
I use the below code fragment to save my data which works fine most the
time, but it fails when the field is large...
 
 
$databaseQuery = new FX($serverIP, $webCompanionPort, $dataSourceType);
$databaseQuery->SetDBData($datafile, "simple");
$databaseQuery->AddDBParam('-recid', $_GET['ID']);
//$databaseQuery->FMUseCURL(false); //worth a try...didn't help
foreach ($data1['data'] as $key => $value) {
  $currentRecord = strtok($key, '.');
}
$post = $_POST;
foreach ($post as $key => $value) { 
  $databaseQuery->AddDBParam($key,htmlentities($value));
}
$databaseDataArray = $databaseQuery->FMEdit();

I have seen alot of comments in this List that the default method of
passing data is via POST rather than GET, but I cannot think what I've
done to break it, or am I just trying to do the save the wrong way?
 
System:
Windows 2003 Server running IIS
PHP 4.3.10
FX.php 4.2
FMv7AS
 
Any help would be greatly appreciated.

============================================
 Phil Goodman
 Email: mailto:phil.goodman at bechtle.co.uk
 Tel: +44 (0)1249 467936
 Fax: +44 (0)1249 467933
 Web: http://www.bechtle.co.uk <http://www.bechtle.co.uk/> 
============================================

 

 

______________________________________________________________________

Contact your Account Manager today to claim your FREE 2 week trial of an Epson AcuLaser C2600N ______________________________________________________________________

This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20060118/feaefe11/attachment.html


More information about the FX.php_List mailing list