Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default null values

    hi

    how to count null values in an array?

    tnx

    Aris Santillan Guest

  2. Similar Questions and Discussions

    1. WDDX and NULL values
      I am currently working on a project to upgrade from our ColdFusion server from CF 5.0 to CF MX 7. I've started testing our existing applications...
    2. Please HELP! Problem with NULL values...
      Hey everyone! I'm developing an asp/VBScrpti/Access web site and I'm having a little trouble with the record sets SQL. The site's deadline is...
    3. Detecting Null Values
      I have a DataGrid from which the datasource is a SqlDataReader based on a SQL Server Stored Procedure. This SP returns columns will NULL values. ...
    4. Null values enter to SQL
      Hi, I have datagrid filled using SqlDataAdapter. One of the fields is a date field which can be null. When I assign null value I receive the...
    5. Joining on Null values
      Hello everyone Have a problem that I need help with I have a table Codes which looks like: ID, Code, modifier Any code can have multiple...
  3. #2

    Default Re: null values

    <?
    function countNulls($array)
    {
    if (!is_array($array)) {
    return(NULL);
    }
    reset($array);
    $count=0;
    while(list(,$val)=each($array)) {
    if ($val===NULL) {
    $count++;
    }
    }
    return($count);
    }
    ?>

    Aris Santillan wrote:
    > hi
    >
    > how to count null values in an array?
    >
    > tnx
    >
    Bogdan Stancescu Guest

  4. #3

    Default Null Values

    Does Anyone know how to exclude a field from a page if its value is null?

    this is what i have

    a VB detail page and right now it just shows nothing next to all values that
    have no values. what i want to do is completly remove all values and labels of
    items where the values don't contain anything.

    any help would be appreciated.



    acidrain9 Guest

  5. #4

    Default Re: Null Values

    filter the table excluding null values. try this:

    SELECT ... WHERE Not IsNull(FIELDX)

    HTH,

    manuel

    acidrain9 wrote:
    > Does Anyone know how to exclude a field from a page if its value is null?
    >
    > this is what i have
    >
    > a VB detail page and right now it just shows nothing next to all values that
    > have no values. what i want to do is completly remove all values and labels of
    > items where the values don't contain anything.
    >
    > any help would be appreciated.
    >
    >
    >IsNull(MyVar)
    Manuel Socarras Guest

  6. #5

    Default Re: Null Values

    that didn't work, thanks though

    i have added the dynamic fields to the right column of a 2 column table
    the left column holds the label for the dynamic field.

    what i need to do is only show the lable and column of fields that have values.

    acidrain9 Guest

  7. #6

    Default Re: Null Values

    when i said "table" i was refering to the DB, not HTML table. if you
    post the code we can take a look

    acidrain9 wrote:
    > that didn't work, thanks though
    >
    > i have added the dynamic fields to the right column of a 2 column table
    > the left column holds the label for the dynamic field.
    >
    > what i need to do is only show the lable and column of fields that have values.
    >
    Manuel Socarras Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139