Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Multi database multi table

phpMyEdit Configuration     Multi database multi table
Odoslať novú tému   Odpovedať na tému    
 
lelive     Založený: 30.08.2006   Príspevky: 2  
Príspevok Zaslal: 2006-08-30 09:50
Návrat hore  Odpovedať s citátom     

Hi all,
i have 45 different database and i want use only one config file for all.
I have tested :
$opts['db'] = $base;
$opts['tb'] = $table;

http://server/pme.php?base=client&table=table
This is ok, but when i click any button, the server return "No database selected"....

How can i make a config file with variables for database connection ?

Thanks for your help.

Lelive

 
michal     Založený: 17.06.2003   Príspevky: 537   Bydlisko: Slovakia
Príspevok Zaslal: 2006-08-31 14:52
Návrat hore  Odpovedať s citátom     

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.cgi-variables.html#AEN677

 
lelive     Založený: 30.08.2006   Príspevky: 2  
Príspevok Zaslal: 2006-08-31 16:40
Návrat hore  Odpovedať s citátom     

i have found this solution :
$opts['db'] = $client;
$opts['tb'] = $client;
$opts['cgi']['persist'] = array ( 'client' => $client);

and it work fine.

Thanks again.

Lelive

 
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