in reply to Re: Perl cant connect to null mysql table
in thread Perl cant connect to null mysql table
I see when a perl page run in the browser, there is a program 'perl.exe' in my Window Task Manager. The page load completely and this programe disappear.sub checkGroupExist { eval{$mysql=Net::MySQL->new(hostname=>"localhost",database=>"check +k",user=>"root",password=>"pw")}; my ($grname)=@_; if(!$@) { $mysql->query(qq{Select GROUP_NAME from PROJECT_GROUP where GR +OUP_NAME='$grname'}); my $record_set=$mysql->create_record_iterator(); my $record=$record_set->each(); if($record) { return 1; } $mysql->close(); } else { print qq{Can't connect to database. Check your config in 'conf +ig.pl'}; exit; } return 0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl cant connect to null mysql table
by Corion (Patriarch) on Jun 06, 2009 at 14:34 UTC | |
by cs.amateur (Initiate) on Jun 06, 2009 at 17:09 UTC | |
by Corion (Patriarch) on Jun 06, 2009 at 18:40 UTC |