Advertisement

02.24.2005 at 08:04AM PST, ID: 21327652
[x]
Attachment Details

String manipulation

Asked by heavenlydishes in Perl Programming Language

The script at the end of this note gets customer codes from a mysql database and displays them in a webpage. Each customer code has a consistent naming convention and I could use it to assess their internal webpage link and add it to the webpage. Can someone help me to get my script to make the link and add it to the page?

An example of a customer code is: Cand

I would like to modify my script to add the following link beside: www.Cand_lin.com

Any ideas?




#!/usr/bin/perl
use strict;
use CGI::Carp qw(fatalsToBrowser);
use CGI;
use DBI;
 
my $q = new CGI;
print $q->header;
 
my $dbh = DBI->connect("DBI:mysql:NAVUSERS;localhost",
"foms");
 
my $sth = $dbh->prepare("SELECT hostname FROM HomeHost where
UID = 0 order by hostname");
 
$sth->execute();
 
print "\tUser
Names:\n=====================================\n";
 
 
while ( my @row = $sth->fetchrow_array()) {
        print "@row\n";
}
 
exit;
 
$sth->finish;
$dbh->disconnect;
Start Free Trial
[+][-]02.24.2005 at 08:19AM PST, ID: 13394041

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.24.2005 at 08:21AM PST, ID: 13394065

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.24.2005 at 09:30AM PST, ID: 13394863

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.24.2005 at 10:04AM PST, ID: 13395213

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.24.2005 at 10:08AM PST, ID: 13395245

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.24.2005 at 10:21AM PST, ID: 13395392

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.24.2005 at 10:28AM PST, ID: 13395465

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Sign Up Now!
Solution Provided By: timdr
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.24.2005 at 10:50AM PST, ID: 13395667

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.25.2005 at 12:55AM PST, ID: 13401133

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32