| Index
» Projekty
» phpMyEdit
» Fórum
» Error message mentioning "PMEtable0" [LONG] |
 |
cjraven
Založený: 13.08.2003
Príspevky: 2
Zaslal: 2003-08-13 15:49
Návrat hore
Odpovedať s citátom
|
Hi there!!
A GREAT app, or at least I hope I still think so once I get it working.!! :-)
I have one apparently unsolveable problem (the long part) and one question
Problem
Anyway, phpMyEdit is in place, setup.php was run, and because it's a virtual site (and FP2000 administered in many parts) permissions were insufficient to create item.php, so I cut and pasted the results of the setup program manually into a file of the same name. Good so far.
Then I attempted to call "item.php" from the browser I got a table outline, but a huge error message at the top of the page as shown below:
---------------------------
item
MySQL error 1109
Unknown table 'PMEtable0' in field list
phpMyEdit error: invalid SQL query
---------------------------
SELECT PMEtable0.id AS qf0,
PMEtable0.category AS qf1,
PMEtable0.item# AS qf2,
PMEtable0.descr AS qf3,
PMEtable0.cost AS qf4,
PMEtable0.avail AS qf5 FROM item AS PMEtable0 ORDER BY PMEtable0.category DESC,PMEtable0.id LIMIT 0,1515.173 miliseconds
---------------------------
Now, my db is called "stuff" and the single table within it is called "item" and has no data in it currently. There are 6 fields:
id (bigint, 20) auto-increment primary key
category (text)
item# (int,11)
descr (text)
cost (float)
avail (int, 11)
I wanted to find out where it was getting a field list which referenced a table called; "PMEtable0" and I found many mentions of it in phpMyEdit.class.php
SO
What must I do?
replace instances of "PMEtable0" with table_name (in this case "stuff")?
do something else magical?
Question:
One of my fields is called "category" and I'd like to be able to display that as a drop down list (I don't want users inventing new categories, just use existing ones) Thus, would it be better to join another table called "Categories" to the main table, then when data entry takes place, the existing records in "table_categories" would be shown and the results could load directly into table_item.
Thanks for your patience everyone *and* a great application. Looking forward to taking my first steps in php/MySQL.
Sorry if this was long, but I'm new to all this and also (needless to say) stumped.
Regards & TIA,
-Colin
|
cjraven
Založený: 13.08.2003
Príspevky: 2
Zaslal: 2003-08-14 11:42
Návrat hore
Odpovedať s citátom
|
I accidentally double posted.
Apologies - sorry sorry
Obviously I was a bit more apprehensive than I thought.
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2003-09-20 17:49
Návrat hore
Odpovedať s citátom
|
Problem is with your field
item#
. Try to avoid strange names like this one. You could rename it to simple
item
and phpMyEdit will work properly than.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|