You helped a lot with my previous problem a few days ago so i thought I'd ask for help with my current issue.
I have a table named orders
with quote
and payment
fields
I'm trying to get it to display all the data where quote=payment
so i did the following query:
SELECT * FROM Orders WHERE quote = '$payment'
However, it doesn't work, but if i do something like:
SELECT * FROM Orders WHERE quote = '10'
Then it works perfectly, any ideas why it doesn't seem to want to work when comparing two columns, but works when I add the number directly into the query? Both columns are int
as well. Thanks for any help.