Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: retrieve data from array empty

by afoken (Chancellor)
on May 24, 2015 at 09:37 UTC ( [id://1127572]=note: print w/replies, xml ) Need Help??


in reply to retrieve data from array empty

The code you posted ...

  • does not compile
  • lacks use strict; and use warnings;
  • is not properly indented
  • does not use placeholders in SQL
  • may have $lastmonth set to nonsense values
  • uses the same variable $sth for two different statement handles (that may work because of different scopes)

You should repair those problems first.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1127572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found