Keep It Simple, Stupid | |
PerlMonks |
Re: Trying to output mysql query to browserby moodster (Hermit) |
on Jan 31, 2002 at 22:15 UTC ( [id://142525]=note: print w/replies, xml ) | Need Help?? |
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,
In Section
Seekers of Perl Wisdom
|
|