CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Perl

 Perl equivalent to this PHP function? {SOLVED sorta}

Print topic Send  topic

Author Message
clahti2

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

Hey guys:

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);  
}  

Many thanks in advance!
View profile  Send private message
clahti2

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

so it was stupid easy :-/

  
sub UpdateTest() {    
  $db = new clsDBmaster_config();    
  $SQL = "UPDATE test SET foo='bar' WHERE recordid = 1";    
  $db->query($SQL);    
}   
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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