in reply to Don't understand row

Hi,

Have u already defined $sth2?

If not, the Problem is you are calling rows method using undefined object $sth2. You have mentioned $sth upto the execution part and you are using $sth2 thereafter.

Regards,
Murugesan Kandasamy.