What's new

Welcome to xCrud Community - Data Management and extended PHP CRUD

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

tableColUsingDatasource new command

andyrav

New member
Joined
Mar 19, 2023
Messages
26
Reaction score
0
Points
1
Location
Uk
Does anyone the new command for below in 1.7?
$WZDjTpeJx->fieldTypes("groupid", "select");//change field type to checkbox
$query = "select id, groupid from `bw_groups` where `proposalid` = $proposalid order by `groupid`";
$WZDjTpeJx->fieldDataBinding("groupid", $query, "groupid", "", "sql");
$WZDjTpeJx->tableColUsingDatasource('groupid', 'bw_groups', 'id', 'groupid', $dataSource = "db");

thanks
 
Last edited:

andyrav

New member
Joined
Mar 19, 2023
Messages
26
Reaction score
0
Points
1
Location
Uk
$wjVsxRZmC->relation('groupid','bw_groups','id','groupid', 'proposalid ='.$proposalid);
 
Top Bottom