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' Quote 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 ? Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/76964-solved-and-condition/#findComment-389714 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.