jaylearning Posted December 9, 2007 Share Posted December 9, 2007 Hi! i have a form that generates a playlist for flash from mysql. my problem is that i have two value 1 and 0 i need my mysql result only to show value that is set to 1. is there any ways i could use if and else statement to do that? thanks!!! Quote Link to comment https://forums.phpfreaks.com/topic/80909-php-and-mysq-help/ Share on other sites More sharing options...
rab Posted December 9, 2007 Share Posted December 9, 2007 SELECT * FROM playlist WHERE column=1 Quote Link to comment https://forums.phpfreaks.com/topic/80909-php-and-mysq-help/#findComment-410452 Share on other sites More sharing options...
revraz Posted December 9, 2007 Share Posted December 9, 2007 Use a sql statment instead and only get the info you want SELECT * FROM tablename WHERE value = 1 Quote Link to comment https://forums.phpfreaks.com/topic/80909-php-and-mysq-help/#findComment-410453 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.