Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

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:
  #1  
Old January 11th, 2004, 01:58 PM
Silver Machine Silver Machine is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: North East England
Posts: 46 Silver Machine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
ERROR:'DBI::db=HASH(0x1b172a4)->select_arrayref()

Can any one tell me what is wrong with this? I have lokked a teh tec references and I cannot see what is wrong. Can I put it together like this? I want to lift the whole row Name and collectit to use in another perl script but I cannot get past this and would it actually let me do this? It is in MySql Apache and Perl

use DBI;
$DBH= DBI->connect("DBI:mysql:Guide")or die "\n

($DBI::err) : $DBI::errstr\n";
$sth= $DBH->prepare(qq{$DBH->select_arrayref()
select Name
from Family
while(@row =$sth->fetchrow_array)
{
print qw($row[0]\t$row[2]\n);
}
});
$sth->execute();
$sth->finish();
$DBH->disconnect();

I get this message:

Bla Bla

DBD ::mysql::st execute failed: you have an error in your SQL syntax near 'DBI::db=HASH(0x1b172a4)->select_arrayref()

select Name

from Family

whil' at line 1 a C:/ bla bla line 11

line 11 seems to be });


Any Ideas at all please thanks Chris

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > ERROR:'DBI::db=HASH(0x1b172a4)->select_arrayref()


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 3 hosted by Hostway