473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Update php 4 to php5

1
I need to update for php 5


Expand|Select|Wrap|Line Numbers
  1. try {
  2.  
  3.                // obtenemos la conexion del la clase ResourceManager   
  4.                $resMan = new ResourceManager();    
  5.                $conn = $resMan->dbConnection();    
  6.                //Construimos el query para generar la insercion del objeto en la base de datos     
  7.                $sql = "INSERT INTO " . self::TABLE_NAME . " SET 
  8.  
  9.                        id_conceptos_renta = ". $ObjDto->getId_conceptos_renta() . ",    
  10.                        id_locales = ". $ObjDto->getId_locales() . ",    
  11.                        monto = ". $ObjDto->getMonto() . ",
  12.                        moneda = '" . $ObjDto->getMoneda() . "'";  
  13.  
  14.                $resMan->execute($conn,$sql);      
  15.                $resMan->closeCon($conn);  
  16.                $conn =null;    
  17.                $resMan = null ;    
  18.            }   
  19.            catch(Exception $e){        
  20.                echo 'Error en la insercion del objeto ' . $e->getMessage() . '\n'; 
  21.            }   
  22.  
Somebody may hel me?
Oct 9 '15 #1
1 1010
Atli
5,058 Expert 4TB
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.)
Oct 10 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

28
by: mikel | last post by:
Hello, php5 is in everybodies mouth - but what are the *real* advantages and plus' compared to php4? mikel
8
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with...
0
by: Rithish | last post by:
OS : RHEL3 PHP version : 5.0.2 JDK version : 1.5.0.06 I have been trying to compile PHP with JAVA support for the past week, and all I have left to do is take a noose and hang myself. Of all...
5
by: jhullu | last post by:
Hi all can I update a xml node AND write the new value in a file witout re-write all the file ? sample : my xml file : <sample>
5
by: tech_php | last post by:
Hi, I compiled php 5.1.6 successfully when I'm running php from command prompt I'm getting following warning Unable to initialize module! Module compiled with module API=20040412, debug=0,...
19
by: McKirahan | last post by:
I am working in two environments neither configuration of which I can change; one's my Web host the other a client. My Web host requires the use of the ".php5" extension to use PHP v5.1.4; where...
6
by: michael.schmitz | last post by:
Hello, my tiny PHP5 test application cannot establish a connection to a database while I am able to connect to the same database using the DB2 command line tool. Our server is 64 bit system...
33
by: PHPSplashBoard | last post by:
PHP resource site update news letter 02-12-2007 - Job section is completely rewritten and now the site shows PHP jobs from various job portals. PHP jobs...
1
by: ManojSharmaBilaspurCG | last post by:
I have apach module 4.0 now we have developed pacakge in 5 .how to update. on server
0
by: Pablo | last post by:
Hello, I have read some books, blogs and tutorials about managing data in php5, but all are focused on mysql, instead native xml. They talk about the new php5 xml functions, xml as web services,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.