inserting $_SESSION var into column on add

Discuss MySQL Ajax Table Editor Pro Version

inserting $_SESSION var into column on add

Postby edtiley » Fri Dec 13, 2019 1:27 am

I have two files:
batch
batchitems

The batch table has a batchID field that is an autoincrement that has been stored in a $_SESSION variable

The batchitems has a batchID field that is designed to provide a relational link to the batch table.

However:

$tableColumns['batchID'] = array(
'display_text' => 'Batch #',
'perms' => 'EVCTAXQS',
'default' => $_SESSION["last_batch_id"]
);

Doesn't work.

What am I doing wrong?
edtiley
 
Posts: 6
Joined: Wed Oct 16, 2019 8:13 pm

Return to Pro Version

Who is online

Users browsing this forum: No registered users and 1 guest

cron