yandoo Posted February 10, 2008 Share Posted February 10, 2008 Hi there, I have a query and bscially i need the reerse of the outcome! $query_animalFear2 = "SELECT FearID FROM animalfears WHERE AnimalID='" . $row_animalFear['AnimalID'] . "'"; I need it to the above but to SELECT WHERE AnimalID != (is NOT equal to) Is that possible?? Thanks Quote Link to comment Share on other sites More sharing options...
p2grace Posted February 10, 2008 Share Posted February 10, 2008 Try this: $query_animalFear2 = "SELECT FearID FROM animalfears WHERE AnimalID != '" . $row_animalFear['AnimalID'] . "'"; Quote Link to comment Share on other sites More sharing options...
yandoo Posted February 11, 2008 Author Share Posted February 11, 2008 Hi, thank you, just the job! Quote Link to comment Share on other sites More sharing options...
p2grace Posted February 11, 2008 Share Posted February 11, 2008 Glad I could help, Could you hit the "Topic Solved" button. Thank you 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.