june_c21 Posted November 12, 2007 Share Posted November 12, 2007 how to write 3 and condition. example : SELECT user.acc_no,report.staff_no, user.name FROM user,report WHERE report.staff_no = user.staff_no and user.bank ='Maybank'and report.status='approve' Link to comment https://forums.phpfreaks.com/topic/76964-solved-and-condition/ Share on other sites More sharing options...
rajivgonsalves Posted November 12, 2007 Share Posted November 12, 2007 Well I think you just did what seems to be the problem ? Link to comment https://forums.phpfreaks.com/topic/76964-solved-and-condition/#findComment-389710 Share on other sites More sharing options...
june_c21 Posted November 12, 2007 Author Share Posted November 12, 2007 it return zero rresult when i put 2 'and' condition Link to comment https://forums.phpfreaks.com/topic/76964-solved-and-condition/#findComment-389712 Share on other sites More sharing options...
rajivgonsalves Posted November 12, 2007 Share Posted November 12, 2007 that depends on the data in the database if there are no records matching that criteria no records will show up Link to comment https://forums.phpfreaks.com/topic/76964-solved-and-condition/#findComment-389714 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.