-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi perl gurus,

I m afraid I need some help here urgently. Could anyone see whats wrong with 
the way I query the database? Whats DBI::st=HASH(0x8240a10) ? Any help is 
appreciated Thanks! 

the $query variable returns -->> DBI::st=HASH(0x8240a10)
$results variable returns --> 0
RESULTS OF QUERY: 0


my $sql = "select status_id from status";
my $query = $dbh -> prepare($sql) or die " error $! \n";
print " $query \n";
# execute the query
$query -> execute or die "cannot execute $! \n";

# return the results
my $results = $query -> fetchrow_array;
print "$results \n";
print "RESULTS OF QUERY: $results \n";



- -- 
Jasmine Chua
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+hLYhNgvTa7Hj2AURAvL9AJ90fr2RisoxpXw8RidnU2zyc146PACgi/fD
FNZxEIfvAlNTLaSniQBgsYM=
=WrTJ
-----END PGP SIGNATURE-----


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to