|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
from html form,I fill in details and wish to compare certain data in mysql.
my dbi code is run normally from the command line.but run under httpd,it fails. its seem like the httpd process usually runs under the user id of nobody,which implies there is no configured environment.I was wondering that is the problem of making my perl script is not running properly. here is my code: $temp=$ENV{'CONTENT_LENGTH'}; @pairs=split(/&/,$temp); .. .. .. #skip the foraech statement use DBI; $dbh=DBI->connect('DBI:mysql:$databasename:localhost','',''); $cursor=$dbh->prepare("select * from $tablename"); $cursor->execute; while(..) #skip the fecthrow statement { } $cursor->finish; $dbh->disconnect; hope someone can help me. thank. |
|
#2
|
|||
|
|||
|
Does your DB not have a username/password? What does the apache error_log say if anything?
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > problem with perl dbi |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|