Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

When Trying to Edit Orders I get a error message


kustomjs

Recommended Posts

Hey Guys

When I try to edit orders I get this error message: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where orders_id = '1'' at line 1

 

select customers_name, customers_email_address, orders_status, date_purchased ,ipaddy, ipisporders where orders_id = '1'

 

I cant understand why its throwing this stupid error for?

Link to comment
Share on other sites

select customers_name, customers_email_address, orders_status, date_purchased ,ipaddy, ipisporders where orders_id = '1'

I cant understand why its throwing this stupid error for?

 

From which table do you select???

 

Yes, thats the mistake;)

 

select customers_name, customers_email_address, orders_status, date_purchased ,ipaddy, ipisporders [color="#ff0000"]from test_table[/color] where orders_id = '1'

Link to comment
Share on other sites

Now I get this error:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

but when I hit the back button it shows its been updated?

Link to comment
Share on other sites

anybody?

look:

that's your query

select customers_name, customers_email_address, orders_status, date_purchased ,ipaddy, ipisporders where orders_id = '1'

 

but there isn't specified the table you want to select the data from.

 

read your query, there's "from" missing

 

Look here

Link to comment
Share on other sites

Now I get this error:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

but when I hit the back button it shows its been updated?

 

anybody know why i am getting this error?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...