vek -- thanks for the reply.
Here's a tiny program the shows the problem. This snippet works with SQL Server and Foxpro db's using ODBC.
#! /usr/local/bin/perl -w
use strict;
use CGI qw(:standard escapeHTML);
$::DSN = "MWEBMYSQL";
use DBI;
$::dbh = DBI->connect ("dbi:ODBC:$::DSN", "ODBC") || die ("Cannot conn
+ect to Data Source '$::DSN'");
my ($count) = $::dbh->selectrow_array ("select count(*) from logon");
print header ('text/html', '200 OK');
print "<html><body>Found $count records in LOGON</body></html>";
When I run this from the command line (instead of as a web app), the correct results are shown, but the cursor stays right after </html> and I never get back to a command prompt.
"marto" suggested (thanks!) that I should use DBD::MySQL. However, the latest on the ActiveState website is version 2.1004, November 16, 2001. Has anyone tried this with MySQL 5.0 yet?
Thanks a million for any ideas!
Stephen
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.