Help for this page

Select Code to Download


  1. or download this
    servers_tbl
    -----------
    ...
     drv_letter           (text)
     total_disk_size      (number)
     free_space_remaining (number)
    
  2. or download this
    
    # lookup the server id
    my $server_id = LookupServerID($srv);
    
    $perms_db->Sql ("INSERT INTO $drives_tbl (server_id,drv_letter,total_d
    +isk_size,free_space_remaining) VALUES ( $server_id, '$drv_letter', $t
    +otal_disk_size,$free_space_remaining)");
    
  3. or download this
    sub LookupServerID
    {
    ...
        #  run the sql through your $perms_db and return the id
        #  you'll probably want to cache these values later...
    }