Current location: Hot Scripts Forums » Programming Languages » Perl » output at TMPL file

output at TMPL file

Reply
  #1 (permalink)  
Old
altarek's Avatar
Newbie Coder
 
Join Date: Dec 2010
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
output at TMPL file

HI


The problem I do not know how to get the output of the code in a variable
Then using this variable in the TMPL file
Example

Code:
my $sth = $dbh->prepare("SELECT name from employee where empno= ?"
I want to get [name] in a variable in order to use it in TMPL file
I tried this
Code:
$sth->execute(); 
my $name = $sth->fetchrow;

I'm trying to implement this code in Koha
Unfortunately I cannot get the outputs
Reply With Quote

Featured Marketplace Scripts (view more)

Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form to Text File Justin171985 PHP 14 02-09-11 11:55 AM
output to file format Andy128 PHP 1 12-08-06 07:51 AM
Upload a file to a fix web folder of a website without using FTP software sujata_ghosh Perl 4 05-10-06 09:10 AM
Checking a file exists lee PHP 3 04-23-06 12:44 AM
Ordering output of fgets() from text file AutoObsession87 PHP 2 03-25-04 01:26 PM


All times are GMT -5. The time now is 08:33 AM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.