Re: Does anyone know why fetchrow_hashref failed?

2001-08-23 Thread Paul DuBois
At 1:09 PM -0700 8/23/01, Truoc Duong wrote: >Hi, > >I am using mod_perl and MySQL 3.23.38 on Red Hat Linux >6.2 and my following codes occasionally got an error. > >$SQL = 'SELECT col1,col2 FROM table1'. > ' WHERE keya=1 AND keyb=2'; >$STH = $DBH->prepare($SQL) || die $SQL; >

Does anyone know why fetchrow_hashref failed?

2001-08-23 Thread Truoc Duong
Hi, I am using mod_perl and MySQL 3.23.38 on Red Hat Linux 6.2 and my following codes occasionally got an error. $SQL = 'SELECT col1,col2 FROM table1'. ' WHERE keya=1 AND keyb=2'; $STH = $DBH->prepare($SQL) || die $SQL; if ($STH->execute() >= 1) { $rec = $STH->fetchrow_