Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: DBI Call works from command line but not from browser

by screamingeagle (Curate)
on Jul 16, 2002 at 17:17 UTC( #182168=note: print w/replies, xml ) Need Help??


in reply to DBI Call works from command line but not from browser

try using :
$dbh->do("use <databasename>") || die("SQL Error: " . $dbh->errstr); my $log = $dbh->prepare("Insert into fp3 (<fieldname1>, + <fieldname2.) values ('$d', '$c')") or print "Couldn't prepare INSERT statement: ". DBI->errstr. "\n\n +";
instead of prefixing the databasename in the SQL stmt...
hth

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://182168]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2016-08-30 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (412 votes). Check out past polls.