ryan7
Založený: 08.02.2010
Príspevky: 1
Zaslal: 2010-02-08 12:36
Návrat hore
Odpovedať s citátom
|
I am having difficulty making lookups in PME to more than one table.
This is what my tables look like in MySQL:
Main table: Hardware
Hardware_ID
Model_ID
User_ID
Startdate
Enddate
Table: Users
User_ID
User_Name
Table: Model
Model_ID
Model_Name
I managed to make one lookup with the following code:
$opts['fdd']['UserID'] = array(
'name' => 'User',
'select' => 'T',
'maxlen' => 50,
'sort' => true,
'values' => array(
'table' => 'Users',
'column' => 'UserID',
'description' => 'User_Name')
);
This works, but apparently 'values' can be used only once and I want to make a second lookup to the 'Model' table.
I am a newbie when it comes to PHP, but if anyone can explain to me what to do or where to look, I would be very happy.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|