PDA

View Full Version : error in my SQL string LIVE


jarv
01-19-2010, 11:12 AM
My SQL code works on my local development machine but not on my LIVE?!

rs.Source = "SELECT `Colour`, tblProductOptions.ID AS ProdOptionsID, tblCustomerOrders.OrderNumber, tblCustomerOrders.qty, tblCustomerOrders.productCode, tblCustomerOrders.option1, tblCustomerOrders.option2, tblProductOptions.Stock FROM tblProductOptions INNER JOIN tblCustomerOrders ON tblProductOptions.ProductID = tblCustomerOrders.productCode WHERE tblCustomerOrders.OrderNumber =" & OldOrderNumber & " AND tblCustomerOrders.option2 LIKE `Colour` AND tblCustomerOrders.option1 LIKE `Size`"


Can someone please help

abduraooft
01-19-2010, 11:25 AM
Did you get any error message (or did you turn the error reporting ON at your server) ?

jarv
01-19-2010, 11:30 AM
sorry, the way the website is setup, error reporting is not working?!
it's doing my head in!

Old Pedant
01-19-2010, 07:02 PM
Show more code.

Show about 20 lines before and 10 lines after the line you showed us.