npsari Posted April 7, 2007 Share Posted April 7, 2007 Is this ok... $result = mysql_query("SELECT * FROM Table Where Color=Red OR Blue"); I want the code to display both Red Or Blue is that the way to do it guys? Link to comment https://forums.phpfreaks.com/topic/46056-is-that-right-what-i-did/ Share on other sites More sharing options...
fert Posted April 7, 2007 Share Posted April 7, 2007 $result = mysql_query("SELECT * FROM Table Where Color='Red' OR Color='Blue'"); Link to comment https://forums.phpfreaks.com/topic/46056-is-that-right-what-i-did/#findComment-223748 Share on other sites More sharing options...
npsari Posted April 7, 2007 Author Share Posted April 7, 2007 Ohh, thanks My code will is like that... $result = mysql_query("SELECT * FROM Table Where Color=$Color"); I dont know what value to give 'Both' to make it display Red & Blue <select name="Color" size="1"> <option value="Red">Red</option> <option value="Blue">Blue</option> <option value="??">Both</option> </select> Any ideas Link to comment https://forums.phpfreaks.com/topic/46056-is-that-right-what-i-did/#findComment-223764 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.