in reply to Re^11: CGI-SQL Query Issue
in thread CGI-SQL Query Issue
What error did you get from using DBI ?. Try this simple script
poj#!/usr/bin/perl use strict; use warnings; use CGI; use CGI::Carp 'fatalsToBrowser'; use DBD::Oracle; my $q = new CGI; my $dbh = DBI->connect( 'dbi:Oracle:host=localhost;sid=DB','USER','PASSWORD', {RaiseError => 1 , PrintError => 0} ); my ($msg) = $dbh->selectrow_array( 'SELECT CURRENT_TIMESTAMP FROM DUAL'); print $q->header,$q->start_html, $q->h2($msg),$q->end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: CGI-SQL Query Issue
by Anonymous Monk on Mar 18, 2016 at 17:35 UTC | |
by poj (Abbot) on Mar 18, 2016 at 18:31 UTC | |
by Anonymous Monk on Mar 19, 2016 at 19:43 UTC | |
by poj (Abbot) on Mar 19, 2016 at 20:46 UTC | |
by Anonymous Monk on Mar 19, 2016 at 23:07 UTC | |
by erix (Prior) on Mar 19, 2016 at 19:46 UTC |