how can i do this query select * from table where a=1 or b=2 because i get this error when i try "OR" query
I just tried the following: select * from user where id=1 or id=2 and it works fine. The example I gave you above was from visual basic so sorry about that.
That means something is wrong in your query, paste the whole thing here and make sure you have referenced the correct tables etc in the query.
you can use the below mysql query : select * from table where fieldname=1 or fieldname=2; I hope this is sufficient .