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!!! 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 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 Link to comment https://forums.phpfreaks.com/topic/80909-php-and-mysq-help/#findComment-410453 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.