Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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


Comment on Re: DBI Call works from command line but not from browser
Download Code

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 perusing the Monastery: (6)
As of 2015-08-01 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls