Update php 4 to php5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DFL11
    New Member
    • Oct 2015
    • 1

    Update php 4 to php5

    I need to update for php 5


    Code:
    try {
                  
                   // obtenemos la conexion del la clase ResourceManager   
                   $resMan = new ResourceManager();    
                   $conn = $resMan->dbConnection();    
                   //Construimos el query para generar la insercion del objeto en la base de datos     
    			   $sql = "INSERT INTO " . self::TABLE_NAME . " SET 
    			   
                           id_conceptos_renta = ". $ObjDto->getId_conceptos_renta() . ",    
                           id_locales = ". $ObjDto->getId_locales() . ",    
                           monto = ". $ObjDto->getMonto() . ",
    					   moneda = '" . $ObjDto->getMoneda() . "'";  
     
                   $resMan->execute($conn,$sql);      
                   $resMan->closeCon($conn);  
                   $conn =null;    
                   $resMan = null ;    
               }   
               catch(Exception $e){        
                   echo 'Error en la insercion del objeto ' . $e->getMessage() . '\n'; 
               }
    Somebody may hel me?
    Last edited by Rabbit; Oct 9 '15, 08:45 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    I don't see anything in there that wouldn't be valid in PHP 5.
    (Assuming this is being executed from withing a class method.)

    Comment

    Working...