/[dolibarr]/dolibarr/htdocs/project.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/project.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by rodolphe, Sat Jul 30 20:23:00 2005 UTC revision 1.12 by rodolphe, Sat Jul 30 20:24:59 2005 UTC
# Line 144  class Project { Line 144  class Project {
144        }        }
145    }    }
146                    
   /*  
    *    \brief      Met à jour objet projet dans la base  
    */  
   
   function update()  
   {  
     $this->ref = ereg_replace("\"","",stripslashes($this->ref));  
     $this->ref = ereg_replace("'","",stripslashes($this->ref));  
     $this->ref = trim($this->ref);  
   
     $this->title = ereg_replace("\"","",stripslashes($this->title));  
     $this->title = ereg_replace("'","",stripslashes($this->title));  
     $this->title = trim($this->title);  
   
     $sql = "UPDATE ".MAIN_DB_PREFIX."projet SET";  
     $sql .= " ref='".$this->ref."', ";  
     $sql .= " title='".$this->title."' ";  
     $sql .= " WHERE rowid=".$this->id;  
147    
     $resql = $this->db->query($sql);  
     if (!$resql)  
       {  
         print $this->db->error();  
       }  
   }  
           
148    /*    /*
149     *     *
150     *     *

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26