Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 29. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Errors in joining table using PME

phpMyEdit Configuration     Errors in joining table using PME
Odoslať novú tému   Odpovedať na tému    
 
xingtan10     Založený: 23.01.2010   Príspevky: 1  
Príspevok 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)
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov