Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Trying to output mysql query to browser

by moodster (Hermit)
on Jan 31, 2002 at 22:15 UTC ( [id://142525]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://142525]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found