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 Link to comment https://forums.phpfreaks.com/topic/90407-reverse-my-query/ 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'] . "'"; Link to comment https://forums.phpfreaks.com/topic/90407-reverse-my-query/#findComment-463484 Share on other sites More sharing options...
yandoo Posted February 11, 2008 Author Share Posted February 11, 2008 Hi, thank you, just the job! Link to comment https://forums.phpfreaks.com/topic/90407-reverse-my-query/#findComment-463924 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 Link to comment https://forums.phpfreaks.com/topic/90407-reverse-my-query/#findComment-464013 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.