F
froil
i am running the script below and when i have the line Get_Page_Options
( ); in the script it ofcourse gives me the error that the sub doesn't
exsist, but when i take that line out, or just make the program in to a
sub with that name, it give me an error 500. Please help!!
DOESN'T WORK ERROR 500
#!/usr/bin/perl -wT
use strict;
use DBI;
use CGI qwstandard);
use CGI::Carp qw(fatalsToBrowser);
my $Url_Path = "../uploads";
my $username = 'jilesfr_cgi';
my $password = 'upload';
my $data_source = 'DBI:mysql:jilesfr_pictures:69.6.255.192:3306';
my $PageName =param('PageName');
my $username = 'jilesfr_cgi';
my $password = 'upload';
my $data_source = 'DBI:mysql:jilesfr_pictures:69.6.255.192:3306';
my $DBH = DBI->connect( $data_source, $username, $password ) or die
"Error: $DBI::errstr\n";
my $sql = "SELECT * FROM pages WHERE PageName = ?";
my $sth = $DBH->prepare($sql);
$sth->execute("$PageName");
print DBI::dump_results($sth);
$DBH->disconnect;
NO ERROR 500
#!/usr/bin/perl -wT
use strict;
use DBI;
use CGI qwstandard);
use CGI::Carp qw(fatalsToBrowser);
my $Url_Path = "../uploads";
my $username = 'jilesfr_cgi';
my $password = 'upload';
my $data_source = 'DBI:mysql:jilesfr_pictures:69.6.255.192:3306';
my $PageName =param('PageName');
my $username = 'jilesfr_cgi';
my $password = 'upload';
my $data_source = 'DBI:mysql:jilesfr_pictures:69.6.255.192:3306';
my $DBH = DBI->connect( $data_source, $username, $password ) or die
"Error: $DBI::errstr\n";
Get_Background_Options();
$DBH->disconnect;
sub Get_Background_Options {
my $sql = "SELECT * FROM pages WHERE PageName = ?";
my $sth = $DBH->prepare($sql);
$sth->execute("$PageName");
print DBI::dump_results($sth);
}
( ); in the script it ofcourse gives me the error that the sub doesn't
exsist, but when i take that line out, or just make the program in to a
sub with that name, it give me an error 500. Please help!!
DOESN'T WORK ERROR 500
#!/usr/bin/perl -wT
use strict;
use DBI;
use CGI qwstandard);
use CGI::Carp qw(fatalsToBrowser);
my $Url_Path = "../uploads";
my $username = 'jilesfr_cgi';
my $password = 'upload';
my $data_source = 'DBI:mysql:jilesfr_pictures:69.6.255.192:3306';
my $PageName =param('PageName');
my $username = 'jilesfr_cgi';
my $password = 'upload';
my $data_source = 'DBI:mysql:jilesfr_pictures:69.6.255.192:3306';
my $DBH = DBI->connect( $data_source, $username, $password ) or die
"Error: $DBI::errstr\n";
my $sql = "SELECT * FROM pages WHERE PageName = ?";
my $sth = $DBH->prepare($sql);
$sth->execute("$PageName");
print DBI::dump_results($sth);
$DBH->disconnect;
NO ERROR 500
#!/usr/bin/perl -wT
use strict;
use DBI;
use CGI qwstandard);
use CGI::Carp qw(fatalsToBrowser);
my $Url_Path = "../uploads";
my $username = 'jilesfr_cgi';
my $password = 'upload';
my $data_source = 'DBI:mysql:jilesfr_pictures:69.6.255.192:3306';
my $PageName =param('PageName');
my $username = 'jilesfr_cgi';
my $password = 'upload';
my $data_source = 'DBI:mysql:jilesfr_pictures:69.6.255.192:3306';
my $DBH = DBI->connect( $data_source, $username, $password ) or die
"Error: $DBI::errstr\n";
Get_Background_Options();
$DBH->disconnect;
sub Get_Background_Options {
my $sql = "SELECT * FROM pages WHERE PageName = ?";
my $sth = $DBH->prepare($sql);
$sth->execute("$PageName");
print DBI::dump_results($sth);
}