Jump to content

how to show data which has some value.?


tanvirzafar

Recommended Posts

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

chek value using is_null() and show the data if it returns false.

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...