in reply to Re: sorting mysql by week and year
in thread sorting mysql by week and year
I have made an attempt but it fails. It says there's Undefined subroutine &main::NOW. Can you or anyone else tell me what's wrong?
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());
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sorting mysql by week and year
by jhourcle (Prior) on Aug 09, 2006 at 03:14 UTC |