
wickedxter
User
Oct 12, 2012, 6:07 PM
Views: 34352
|
Re: [MDTech.us_MAN] Need help writing a script that interacts with a MySQL DB
|
|
|
why does your code have these <server ip> does this get replaced by you or by something else?
#dont use ' ','' because if your useing '$server_ip' perl will not interpopulate the the scalar... my $conn = DBI->connect('DBI:mysql:bcpadb;host=<server IP>, '<username>', '<password>', { RaiseError => 1 }) || die "Could not connect to the database"; #should be my $conn = DBI->connect("DBI:mysql:bcpadb;host=<server IP>", "<username>", "<password>", { RaiseError => 1 }) or die "Could not connect to the database"; #change this my $LName = $FORM{'LName'}; my $FName = $FORM{'FName'}; #to this my $LName = $FORM{LName}; my $FName = $FORM{FName};
(This post was edited by wickedxter on Oct 12, 2012, 6:29 PM)
|