Assigning the input_info a variable

Discuss MySQL Ajax Table Editor

Assigning the input_info a variable

Postby aykutatakan » Fri Jun 21, 2019 9:17 am

Hi,

I dont want the user manually input the value, or select from a dropdown. How can I set a variable as a value? simply I want to print the username from the session. But it fails when I code like below.

$tableColumns['first_name'] = array(
'display_text' => 'Owner',
'perms' => 'AVCTXQSFHO',
'input_info' => $_SESSION["username"],
);
aykutatakan
 
Posts: 2
Joined: Wed Jun 12, 2019 7:57 am

Re: Assigning the input_info a variable

Postby KarelB » Tue Jul 09, 2019 10:49 am

Hi

You can use a UserColumn for that. See the documentation

Karel
KarelB
 
Posts: 458
Joined: Mon Dec 01, 2008 11:49 pm
Location: The Netherlands


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 9 guests

cron