iluvperl
Programmer
- Jan 22, 2006
- 107
Code:
use DBI;
my $dbh = DBI->connect("DBI:mysql:$dbase", $mysql_user, $mysql_pass) o
+r
print DBI->errstr;
my $data = qq(INSERT INTO searches (search, engine, time) values(?,?
+,?));
my $sth = $dbh->prepare($data);
$sth->execute("$search", "$engine", NOW());
It says NOW() is an undefined subroutine. Any idea why?