1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Rep Power
    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:
    .. #skip the foraech statement

    use DBI;
    $cursor=$dbh->prepare("select * from $tablename");
    while(..) #skip the fecthrow statement

    hope someone can help me.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 1999
    Rep Power
    Does your DB not have a username/password? What does the apache error_log say if anything?

IMN logo majestic logo threadwatch logo seochat tools logo