Sweet!!! :-D
I tried a variation of the IF statement and did not work. Mine was:
if($row[1] = '1'){
$row[1] = 'true';
}else{
$row[1] = 'false';
}
I'll have to read up on the nuances since I am still a Newbie at this Perl stuff. Thanks so muck!!!
-john
Unfortunately, this will not work since we do not want to (and can not) change the data in the SQL table. Unless, UPDATE is being used differently in your example. For our purposes, SQL has to be read-only. We need to change the data after it is retrieved from the SQL table and write the...
I am successful in connecting to a remote SQL database and printing information from tables. I need some assistance on how to change the value(s) of a column after I retrieve the data. For example, SQL may have the value of ‘0’ or ‘1’ for false or true. I need to print/write false/true in...
Sorry, I should have stated this in my original post.
I want to use builtin functions of the CGI module to create HTML code with tables. I excluded the CGI code from my post since I have already tested and is working fine.
This script works fine when CGI is not loaded, and when CGI is loaded the $data_source string does not build correctly. Any help would be greatly appreciated!!!
-john
use DBI;
use CGI qw(:standard :html3);
use Term::ReadKey;
# Request IP address of Server
print " \n";
print "What is the IP...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.