tanvirzafar Posted February 28, 2014 Share Posted February 28, 2014 hello everyone...i have a database of student result...i want to show record of student on its roll number..but there are some fields that i want empty in some cases...i don't want those empty or null fields to show in result or output ....please tell me what is the query for this purpose... Link to comment Share on other sites More sharing options...
birbal Posted February 28, 2014 Share Posted February 28, 2014 chek value using is_null() and show the data if it returns false. Link to comment Share on other sites More sharing options...
birbal Posted February 28, 2014 Share Posted February 28, 2014 Also empty() do check on empty values but empty() consider 0,false,empty string,array() as empty . So you have to be cautious when you use it. http://php.net/empty http:/php.net/is_null Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now