ktsirig Posted September 17, 2005 Share Posted September 17, 2005 Hi everyone! I have the following problem: I ran 2 queries on my database using PHP. Each query returns its result. How can I check whether query1=query2 and print the final result to the user? I don't want the UNION syntax, because I am not interested in returning all the results. For example, if answer1='test' and answer2='job' , then nothing should be printed to the user. If answer1='test' and answer2='test' as well, then, the user will see test. If answer1='test','strange','orange' and answer2='apricot', 'test', 'curious' then the user will only see 'test' as final result. Any thoughts??? Is there something to do with string equations or not? Particularly I have trouble when it comes to compare 2 arrays with each other, such in the case of : If answer1='test','strange','orange' and answer2='apricot', 'test', 'curious' then the user will only see 'test' as final result. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.