/ Forside / Teknologi / Udvikling / Perl / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Perl
#NavnPoint
bjarneA 141
poul_from 50
soccer 30
Nicknack 14
Tmpj 0
Help with this Perl/MySQL script....does a~
Fra : Gabe


Dato : 13-04-01 22:01

Hey guys, Im having an issue. I went to a new server for my MySQL host and
I keep on getting an internal server error by running the following script:

#####################
#!/usr/bin/perl
use DBI;

print "Content-type: text/html", "\n\n";
$Username = "username";
$Password = "password";
$DSN = "DBI:mysql:database=adtomi";

my $dbh = DBI->connect($DSN, "Username", "Password");
$dbh->do("INSERT INTO Host_Acc_Data (Acc_ID, Acc_PW) VALUES ('bob', 'ohya')
");
$dbh->disconnect;
print "Its done";
####################

I am getting an internal server error for some reason. If anybody notices
anything wrong with this please let me know. I already asked the host and
they were saying something that I was not declaring the server location or
something like that. I dont think that would explain the Internal server
error though. If anybody could help me, please let me know. Thanks a lot







 
 
Henrik Olesen (14-04-2001)
Kommentar
Fra : Henrik Olesen


Dato : 14-04-01 15:31

> Hey guys, Im having an issue. I went to a new server for my MySQL host and
> I keep on getting an internal server error by running the following script:

Check your logs! It is possible that the error is caused by a missing DBI module or MySQL DBD.


--

Med venlig hilsen
Henrik Olesen
Blue Sky
------------------------
E-mail: henrik@blue-sky.dk
www: www.blue-sky.dk


Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408914
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste