SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Is null

  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Is null

    Visually, phpmyadmin says there're plenty of null values. Any idea why this script isn't selecting any null values in the mfr column?
    PHP Code:
    $result mysql_query("SELECT * FROM stk WHERE mfr IS NULL") or die(mysql_error()); 

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Changed to: WHERE mfr = ''


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •