MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old June 10th, 2000, 09:38 AM
giddu giddu is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 7 giddu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help me anyone?
I am running winNT.40 work station, with option pack and PWS. I have insstalled mysql-shareware version. I have installed from ActiveState Perl- build613. I have DBI, DBD-mysql, DBD-ODBC modules installed
I have created a data base "people' with a table "phones" in mysql.
I HAVE THIS CGI SCRIPT IN THE CGI-BIN DIR. of PWS
--------
#!/usr/bin/perl -w
# print-table.cgi - print contents
of a table as HTML
print "HTTP/1.0 200 OKn";
print "Content-Type: text/htmlnn";
use DBI;
use CGI qw(:standard *table :html3);

print header(),
start_html("All the People"),
start_table();

$dbh = DBI->connect("DBI:mysql eople",
"ugtn5", "sada",

{ RaiseError => 1 });
$sth = $dbh->prepare("SELECT * FROM phones");
while (@row = $sth->fetchrow_array) {
print Tr(Td( [ @row ] ));
}
print end_table(),
end_html();

$sth->finish();
$dbh->disconnect();
---------------
I get a meessage, 'the cgi script produced no output' when I run this script .
What other modules am I missing? Do I need a special ODBC administator.?
"DBI:ODBC:xxx.mdb" works OK
mysql and php scripts that I have, work OK.
What am I doing wrong? What is missing?


Reply With Quote
  #2  
Old June 13th, 2000, 04:08 AM
Imo Imo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 1999
Posts: 33 Imo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
does it work properly if you run it from the command line? what does it say?

Reply With Quote
  #3  
Old June 14th, 2000, 05:40 AM
giddu giddu is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 7 giddu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Imo:
does it work properly if you run it from the command line? what does it say?[/quote]
I am getting no output. There are no error messages. This is what I get:

'F:Inetpubwwwrootcgi-bintark.cgi' script produced no output

Need I configure ODBC as I do for Access databases?
Thanks


Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > help : dbi:mysql:mydb


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway