onedumbcoder Posted August 10, 2009 Share Posted August 10, 2009 lets say we have a table called foodstore, and it has 400 fields, each field can have one of two values, 0 or 1. is there a away I can make the query return "Yes" instead of 1s? Quote Link to comment https://forums.phpfreaks.com/topic/169543-change-query-return-value-in-the-entire-query/ Share on other sites More sharing options...
BLaZuRE Posted August 10, 2009 Share Posted August 10, 2009 A MySQL database is really just that, a database. It stores data you want to use, it doesn't manipulate it (PHP generally does all of that). Just add something to your php so that if you're returned a one, it displays a text to screen or you set that variable to "yes" if the variable is 1. Quote Link to comment https://forums.phpfreaks.com/topic/169543-change-query-return-value-in-the-entire-query/#findComment-894541 Share on other sites More sharing options...
onedumbcoder Posted August 10, 2009 Author Share Posted August 10, 2009 do u even have a clue wtf ur talking about Quote Link to comment https://forums.phpfreaks.com/topic/169543-change-query-return-value-in-the-entire-query/#findComment-895083 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.