Jump to content


Photo

queries and results


  • Please log in to reply
No replies to this topic

#1 ktsirig

ktsirig
  • Members
  • PipPipPip
  • Advanced Member
  • 49 posts

Posted 17 September 2005 - 05:52 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users