This topic is locked

PHP error message

9/20/2005 11:20:12 AM
PHPRunner General questions
V
Voodoo author

I have built a database to store information about wireless cusotmers we have, it all work fine until i click one of the links and get this error:
PHP error happened

Technical information

Error type 256

Error description You have an error in your SQL syntax near 'ec_name' at line 1

URL www.sutv.com/pages/wireless/equipment_list.phpmasterkey=EC001_LR

Error file /usr/local/www/data.default/pages/wireless/include/dbconnection.php

Error line 26

SQL query select `ec_name`, `ec_type`, `ec_user`, `ec_ropass`, `ec_rwpass`, `ec_mac`, `ec_serial`, `ec_ip`, `ec_comments`, `ec_pur_date`, `ec_volt`, `ec_image` From `equipment` where `ec_name`='EC001_LR' ec_name
the last part of the statement seems wrong where it says:
where `ec_name`='EC001_LR' ec_name
Why does it have the field ec_name at the end there..
if that is the problem what can i do to fix it?
thank you
p.s. if you need more information please let me know i would be happy to provide it.

Sergey Kornilov admin 9/21/2005

Hi,
please open your PHPRunner project, select "equipment" table and proceed to Choose fields tab.

Replace "ec_name" in "Order by" box with:
order by ec_name
or use "Change" button to construct Order by clause.
Then rebuild the pages.

V
Voodoo author 9/21/2005

Fixed it perfectly! THANK YOU.
BTW GREAT SOFTWARE!