setting column width in php

Hi all
I am using code from PHPMyEdit to display/manipulate data from a db. (So my client can edit the db without knowing PHPmyadmin etc.)

My problem is that the particular data that is presented from the ‘information’ field displays in a column that is really too narrow to look sensible (it just gives me a tall narrow column with far too many lines of text)

This is the code

$opts['fdd']['information'] = array(
'name'     => 'Information',
'select'   => 'T',
'maxlen'   => 65535,
'textarea' => array(
'rows' => 5,
'cols' => 50),
'sort'     => true
);

I was trying to insert

‘colattrs’ => ‘width = 500px’,

to give me the column width that I wanted but having no luck.

I tried various other solutions (including $opts[‘fdd’][‘information’][‘colattrs’] = ‘width=“500px”’; )from the PHPMyEdit forum but I am not getting anywhere.

David


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Look here:

http://platon.sk/projects/doc.php/phpMyEdit/html/configuration.basic-
options.html#AEN884

Try adding a classname to the column in question using this syntax,
and then you should be able to establish a width using that class.

I would recommend putting up a page somewhere, looking at it in Xyle
scope, and figuring out what the actual classname is for that column.
Once you have that, you should be able to write an iron-clad rule to
reach it.

Walter

On Apr 25, 2008, at 9:12 PM, DeltaDave wrote:

PHPMyEdit


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter

I will have a look at doing it that way.

David


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options