in reply to Trying to output mysql query to browser
IMPORTANT! Before you run that CGI script of yours on the web first try to run it from your command line prompt like so:
If you get NO ERRORS and you get the output that you're expecting then you can try invoking your CGI script from a browser.C:\> perl -w mycgiscript.pl
You should start out using something simple like this:
#!D:\Perl\bin\perl -wT use strict; print "Content-Type: text/html\n\n"; print "<html><body>\n"; print "Hello World!\n"; print "</body></html>\n";
And gradually add a SQL query or whatever and you'll obviously want to make sure that you output correct HTML which would include the DOCTYPE header.
Also, don't forget about SECURITY. Be careful in what you accept from the browser, if anything.
metadoktor
"The doktor is in."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Start Simple Before ... Trying to output mysql query to browser
by Johnny_bike (Initiate) on Feb 01, 2002 at 08:16 UTC |