Changeset 46


Ignore:
Timestamp:
11/01/04 11:57:52 (20 years ago)
Author:
Kris Deugau
Message:

/trunk

SQL bugfixes:

  • New static IP would not get assigned
  • Deleting a static IP assignment now clears the "Description" field
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r45 r46  
    979979    my $cidr = $data[1];
    980980
    981     $sth = $ip_dbh->prepare("update poolips set custid='$webvar{custid}',city='$webvar{city}'".
    982         " available='n',description='$webvar{desc}'".
     981    $sth = $ip_dbh->prepare("update poolips set custid='$webvar{custid}',".
     982        "city='$webvar{city}',available='n',description='$webvar{desc}'".
    983983        " where ip='$cidr'");
    984984    $sth->execute;
     
    14161416      @data = $sth->fetchrow_array;
    14171417      $sth = $ip_dbh->prepare("update poolips set custid='6750400', available='y',".
    1418         " city='$data[0]' where ip='$webvar{block}'");
     1418        " city='$data[0]', description='' where ip='$webvar{block}'");
    14191419      $sth->execute;
    14201420      $ip_dbh->commit;
Note: See TracChangeset for help on using the changeset viewer.