Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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: (14)
As of 2016-06-29 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (387 votes). Check out past polls.