Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 musing on the Monastery: (3)
As of 2016-09-28 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (516 votes). Check out past polls.