473,549 Members | 2,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Update php 4 to php5

1 New Member
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 1014
Atli
5,058 Recognized Expert Expert
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
3628
by: mikel | last post by:
Hello, php5 is in everybodies mouth - but what are the *real* advantages and plus' compared to php4? mikel
8
2964
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 speed. They had a vague idea that PHP5 has improved handling of objects over PHP4, so it would probably be faster also. In fact it seems slower. ...
0
2554
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 the articles, tutorials, posts that I have seen and browsed ( none of them on PHP5+ though ), all of them speak of a libphp_java.so/java.so file...
5
5238
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
4564
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, thread-safety=0! PHP compiled with module API=20050922 Can any body tell me the reason of this warning
19
2348
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 ".php" is used for PHP v4.3.11. My client supports PHP v5.2.0 with the ".php" extension. Is there a way to reliably determine if the ".php5"...
6
6777
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 running SuSE Enterprise Linux 10. The PHP version installed is v5.1.2. Product Name = "DB2 Personal Edition"
33
1586
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 http://www.phpsplashboard.com/php_jobs.php - New PHP5 test posted for Intermediate level users I-PHP5-Test1 http://www.phpsplashboard.com/free-php-tests.php - News and events, PHPclasses...
1
1395
by: ManojSharmaBilaspurCG | last post by:
I have apach module 4.0 now we have developed pacakge in 5 .how to update. on server
0
1074
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, and so on. I haven´t found any example that fits this question, because all of them . I need an admin content, made in php5 and xml (no mysql),...
0
7715
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.