Jump to content

Recommended Posts

Hi, seem to be having trouble with mergeblocks with livedocx in php.  I understand that for merge blocks a multi associative array is needed such as :

 

    $billConnections = array(
    array(
        'con_productid'   => 1A,
        'con_quantity' => '10',
        'subtotal' => '£10',
    ),
    array(
        'con_productid'   => '1B',
          'con_quantity' => '20',
        'subtotal'     => '£30',
    ),
);

 

This does print two rows on the document, however i am struggling to understand how to transfer SESSION variables into those 3 fields.

I have tried:

$array1=unserialize($_SESSION['product']);

while(list($vs,$ks)=each($array1))
$billconnections=array(
array('con_productid'=> $ks));

But this only seems to print one row not for all the product id's stored in the session variable.  I know session array itself is an associative array but i'm getting confused with how to specify the different fields with it.  Any help appreciated, thanks

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.