CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Perl equivalent to this PHP function? {SOLVED}

Print topic Send  topic

Author Message
clahti2

Posts: 107
Posted: 07/05/2012, 5:08 PM

Hey guys:

I know this is the PHP forum, I also posted this question in the Perl section but I am thinking there will be very few eyeballs on that post :-) The CCS5 documentation is mighty skinny on perl, I operate in PHP mostly but have a perl project at the moment. I have been able to reverse engineer most stuff by looking at the generated perl code, but I am now writing a function library in perl and need to update a record in an SQLite table. Could someone be so kind as to give me the perl equivalent to this simple PHP code? I could do my own perl DBD::SQLIte open/prepare/update/finalize however there must be a better CCS way.

  
function UpdateTest() {  
  $db = new clsDBmaster_config();  
  $SQL = "UPDATE test SET foo=\'bar\' WHERE recordid = 1";  
  $db->query($SQL);  
}  

The specific head scratching is how to instantiate a DB object in perl, as in the "new clsDB" line in PHP. Many thanks in advance!
View profile  Send private message
clahti2

Posts: 107
Posted: 07/05/2012, 5:38 PM

so it was easy, CCS forum apparently will not let me post perl code under the code /code here LOL

sub UpdateTest
db = new clsDBmaster_config

blah blah, sorry for the confusion.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.