devkbsc
Založený: 30.12.2014
Príspevky: 7
Zaslal: 2014-12-30 12:13
Návrat hore
Odpovedať s citátom
|
Hello,
I am using the phpMyEdit. It's really a powerfull module i haven't ever seen.
I have completed my work in a couple minuites. But one thing i couldn't find to do in the sources code. Because all the variables are well encoded and organised.
I want to encode some field values from numbers to strings. For example.
there is a column in my database, which can store only numbers. I want to replace it by a string in the frontend as follow. When i click on save, again it has to save store only number in the database.
'1'=>'Lundi',
'2'=>'Mardi',
'3'=>'Mercredi',
'4'=>'Jeudi',
'5'=>'Vendredi',
'6'=>'Samedi',
'7'=>'Dimanche'
i have coded for restrict value method as i have followed in your documentation as follow. But i couldn't do the best.
$opts['fdd']['jour']['values']=array('1'=>'Lundi','2'=>'Mardi','3'=>'Mercredi','4'=>'Jeudi','5'=>'Vendredi','6'=>'Samedi','7'=>'Dimanche');
Can anybody help me?
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2014-12-30 13:39
Návrat hore
Odpovedať s citátom
|
$opts['fdd']['jour']['values2']=array('1'=>'Lundi','2'=>'Mardi','3'=>'Mercredi','4'=>'Jeudi','5'=>'Vendredi','6'=>'Samedi','7'=>'Dimanche');
values2 for multidimensional arrays
|
devkbsc
Založený: 30.12.2014
Príspevky: 7
Zaslal: 2014-12-30 16:12
Návrat hore
Odpovedať s citátom
|
Thank you very much
|
Odoslať novú tému
Odpovedať na tému
|
|
|