in reply to Trying to output mysql query to browser

Well, for starters your code looks really weird. The 'perl -MCPAN -e...' statement is usually just something you use when installing or modifying the perl modules/libraries on you server. So that doesn't really belong in a cgi script.

As far as I can tell, I get some output from the script at the URL you specified, but it looks like the Content-type is all wrong. You got it right in your example, though.

I haven't read it personally, but I'm told that Ovid's Web Programming Course is a good place to start. You should play around with the basic stuff like CGI.pm and creating a few forms first. When you feel comfortable with that you can start worrying about databases and DBIx::XHTML_Table and stuff.

Cheers,
-- moodster

  • Comment on Re: Trying to output mysql query to browser