Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  found bug #94, still problem with underscores in names

phpMyEdit General     found bug #94, still problem with underscores in names
Odoslať novú tému   Odpovedať na tému    
 
peg_rtm     Založený: 14.04.2006   Príspevky: 6  
Príspevok Zaslal: 2006-04-14 02:57
Návrat hore  Odpovedať s citátom     

First, let me say I was very, very excited to find PhpMyEdit. It is an amazing tool! But...

Regrettably, most of the databases I am trying to use have underscores in table and field names. I found bugs #94 and 146 which attempt to explain how to fix this. I tried adding backticks like `'x_news_pics'` around table and field names in various ways. Nothing I have found will allow me to make changes to my tables :( This seems a very serious bug, as it appears to make PhpMyEdit useless for editing! As I read MySQL docs, underscore is a legal character, and it should be supported.

Could someone please explain EXACTLY where and how I must make these changes to the following lines of my file which have table or field names?

$opts['tb'] = 'x_news_pics';
$opts['key'] = 'id_pic';
$opts['sort_field'] = array('id_pic');
$opts['fdd'][id_pic]

...etc...

$opts['fdd']['pic_x']
$opts['fdd']['pic_y']
$opts['fdd']['credit']

and what about the one field which pulls data from another table, as below:

$opts['fdd'][id_story] = array(
'name' => 'Story',
'values' => array(
'table' => 'x_news',
'column' => 'id_story',
'description'=> array(
'columns' => array(
'0' => 'date',
'1' => 'title'
),
'divs' => array(
'0' => ': '
),
),
'orderby'=>'date'
)
);

I hope someone can enlighten me to fix this. If so, I will send what money I can to support the project, because it will be just what I need if it will just edit my data!

Thank you

 
peg_rtm     Založený: 14.04.2006   Príspevky: 6  
Príspevok Zaslal: 2006-04-14 15:46
Návrat hore  Odpovedať s citátom     

I stumbled upon the solution myself. I had a field named "order" which conflicts with MySQL keyword. When I backtick just that field and the table name, all is ok.

I still wonder why it did not work when I backtick'ed ALL fieldnames and the table name...?

 
peg_rtm     Založený: 14.04.2006   Príspevky: 6  
Príspevok Zaslal: 2006-04-14 16:46
Návrat hore  Odpovedať s citátom     

Nope, again I am mistaken. Although what I did fixed things so that I can CHANGE a record, now I cannot ADD a new record.

This is very frustrating. I am beginning to believe perhaps this tool will not do what I want after all. What a shame after such a hopeful start :(

IMHO, if MySQL permits an underscore character in table and field names, then I have to say I think PhpMyEdit must support it seemlessly.

 
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