Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Getting Output ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1410 of 1478
Post > Topic >>

Getting Output for 'do' Query.

by sara.samsara@[EMAIL PROTECTED] (Sara Samsara) Jun 30, 2007 at 08:05 PM

------=_NextPart_000_0009_01C7BB51.F9C5E6B0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

my $query =3D qq|SELECT SUM(MINS) FROM files WHERE USER=3D'$user'|;=20
my $do =3D $dbh->do($query);=20
print "$do";=20

Where MINS is integar, Now when I print $do it obviously prints only =
'1', marking return of the query.=20
Running query in phpMyAdmin prints the '2864' sum of all mins.=20
How I am supposed to print the same results here in script instead of =
'1' only.

Thanks,=20
Sara.
------=_NextPart_000_0009_01C7BB51.F9C5E6B0--
 




 2 Posts in Topic:
Getting Output for 'do' Query.
sara.samsara@[EMAIL PROTE  2007-06-30 20:05:16 
Re: Getting Output for 'do' Query.
ricky.zhou@[EMAIL PROTECT  2007-06-30 11:38:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:59:14 CDT 2008.