raviguhani has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: CGI Error Again
by moritz (Cardinal) on Aug 18, 2007 at 17:56 UTC
    This looks a lot like CGI ERROR RELATING TO MYSQL.

    Again the questions: Why do you use Win32::ODBC instead of DBI with DBD::mysql? The latter is probably easier to install and use.

    How exactly did you install Win32::ODBC?

    Does it work if you execute it locally, ie not as CGI trough the web server?

    (Update: fixed typo)

Re: CGI Error Again
by jZed (Prior) on Aug 18, 2007 at 17:54 UTC
    require "cgi-lib.pl";

    Do NOT use that. Use CGI.

    use Win32::ODBC;

    Do NOT use that. Use DBI and DBD::mysql.

    Look in the Tutorials section of this site to see some tutorials on using CGI.pm and DBI.pm.
Re: CGI Error Again
by ikegami (Patriarch) on Aug 18, 2007 at 17:56 UTC

    I have download the mysql, dbd, ODBC, and other related modules from CPAN and copied it in the perl/lib and some in lib/win32 folder ..

    That's not the proper way to install a module, and not sufficient for this module.

    If you're using ActivePerl, the simplest way is probably to execute the following command from the command prompt:

    ppm install DBD-mysql

    Update: Oops, the install procedure I gave is for a the DBI driver for MySql, not Win32::ODBC. It's probably what you should be using anyway.