for checking database null column value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • soniachouhan
    New Member
    • Apr 2013
    • 1

    for checking database null column value

    how to i check database null column value and wanna perorm some action in both if else part according to the database value.
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    try these
    Code:
    is_null($result['column'])
    $result['column'] === NULL
    got it from google search

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      and in the case of SQL: … WHERE field IS NULL

      Comment

      Working...