| Index
» Projects
» phpMyEdit
» Forum
» Options are not working for me... |
 |
gb5256
Joined: 30 Aug 2008
Posts: 7
Posted: 2008-08-30 18:48
Back to top
Reply with quote
|
Hello out there,
first of all, this is a very nice project.
But I have problems with the field definitions.
The moment I enter an 'options' to a coloumn, it will not be displayed in the lsit view. Doesn't matter what settings I use, like just options = R. It will not be displayed at all.
I'm using php4
Any ideas?
|
gb5256
Joined: 30 Aug 2008
Posts: 7
Posted: 2008-09-01 07:39
Back to top
Reply with quote
|
Thanks for your reply.
I just installed it yesterday and it is the code that the script generated.
| Code: |
$opts['fdd']['proben_id'] = array(
'name' => 'Proben ID',
'select' => 'T',
'options' => 'AVCPDR', // auto increment
'maxlen' => 11,
'default' => '0',
'sort' => true
); |
The problem is, that this column is not shown at all. If I remove the options line the column is shown, but then it is also writeable in the "change" window which is bad as it creates errors if somebody puts something in (this is the main ID !!!)
|
gb5256
Joined: 30 Aug 2008
Posts: 7
Posted: 2008-09-01 19:34
Back to top
Reply with quote
|
Hello,
this is what I tried:
| Code: |
$opts['fdd']['proben_id'] = array(
'name' => 'Proben ID',
'select' => 'T',
'options' => 'AVCPD', // auto increment
'maxlen' => 11,
'default' => '0',
'sort' => true
); |
Still not working. I already tried all different options letters, with no success. The moment I have the option line in the code, the column is not showing up.
I also tried with other columns, like just adding a options => R, so that it is just read only, but with the same effect: It is not showing up at all.
What am I doing wrong?
|
gb5256
Joined: 30 Aug 2008
Posts: 7
Posted: 2008-12-02 16:06
Back to top
Reply with quote
|
Hello Out there,
I'm still struggeling with the OPTIONS of the script.
Acutally it is (for me) very easy to reproduce:
The script which is created by phpmyeditsetup.php is using a OPTION for the ID.
The moment I use this, the ID column is not used at all.
I can change the value of OPTIONS to any other value with no result. Even when I say Options = R (for read only) the column will not be displayed at all.
The same happens with any other column I have.
I use currents CVS branch, PHP4.
Does anybody have an idea?
Acutally I'm using all kind of PHP and MYSQL softwares on my server without any problems.
gb5256
|
gb5256
Joined: 30 Aug 2008
Posts: 7
Posted: 2008-12-03 09:48
Back to top
Reply with quote
|
Hello Doug,
thank you very much for your help.
This is what I have in my code:
$opts['fdd']['id_nr'] = array(
'name' => 'ID nr',
'select' => 'T',
'options' => 'R', // Read only
'maxlen' => 11,
'default' => '0',
'sort' => true
);
The Code is EXACTLY as the initial script is creating it, except the options line that I have modified to be just "R". Even if I do not modifiy it, it is not working for the column ID (which has initially some Options set).
Yesterday evening I installed phpmyedit also on a complete different webserver together with a complete different MYSQL table and complete different content.
The result stays the same. I can not use any "Options".
The moment that the line with "Options" is present, the column is not displayed at all.
It must be something really stupid and simple (as far as I can see in this forum nobody else experienced this).
I'm really dissapointed as I do not get it to run.
I'm really not a PHP noob (working with it for decades now.. :-)
Does anybody has a hint what it could be (strange server settings, MYSQL Version, PHP Version, what can I check???)
MYSQL: 4.1.22
PHP 4.3.11
I saw somebody runinning it on PHP5 (with some changes) , should I try this?
gb5256
|
|
Post new topic
Reply to topic
|
|
|
|