| Index
» Projekty
» phpMyEdit
» Fórum
» Errors in joining table using PME |
 |
xingtan10
Založený: 23.01.2010
Príspevky: 1
Zaslal: 2010-01-23 10:19
Návrat hore
Odpovedať s citátom
|
Dear Sir,
I have just started using PME for my system. I have 2 tables. Here are the details of 2 tables:
table1: people
column1: id
column2: fname
column3: lname
table2: times
column1: id
column2: pid
column3: timein
column4: timeout
I had this script which list out 3 columns. I need the 4th column (fname) to list out the name.
My main table is times. I would like to join people.fname to the times table. The times.pid is the same as people.id. What script do i need to put into my register.php.
The default script without joining any table is below.
$opts['fdd']['pid'] = array(
'name' => 'IC No',
'select' => 'T',
'maxlen' => 100,
'sort' => true
);
$opts['fdd']['timein'] = array(
'name' => 'Time in',
'select' => 'T',
'maxlen' => 30,
'sort' => true
);
$opts['fdd']['timeout'] = array(
'name' => 'Time out',
'select' => 'T',
'maxlen' => 30,
'sort' => true
);
How do i join the people.fname to times table so that i can list down fname column on my site.
Kindly advise.
Thanks.
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2010-01-23 15:54
Návrat hore
Odpovedať s citátom
|
See another post:
http://opensource.platon.sk/forum/projects/viewtopic.php?t=887201
You might also use the forum Search feature using $join_description or $join_table
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|