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

output at TMPL file

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


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

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



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 04:05 PM.
vBulletin® Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.