Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Difficulty making two or more lookups

phpMyEdit Configuration     Difficulty making two or more lookups
Odoslať novú tému   Odpovedať na tému    
 
ryan7     Založený: 08.02.2010   Príspevky: 1  
Príspevok 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    

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