Forum Moderators: coopster & phranque

Message Too Old, No Replies

Anyone know what this error is?

File untouched for ages but now getting this error.

         

textex

5:40 pm on Sep 13, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DBD::mysql::db selectrow_array failed: fetch() without execute() at page2.cgi line 126.

matrix_jan

6:05 pm on Sep 13, 2012 (gmt 0)

10+ Year Member



File untouched for ages but now getting this error.

I file was untouched then most probably the platform version has been changed to a newer one. You need to adopt your files, I think.

janharders

6:36 pm on Sep 13, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or maybe there's some if-clause that just sets in sometimes and does it.

basically: the script is calling
$sth->selectrow_array (while $sth can be anything, it's the name of the statement handle) without executing a query. So it is asking for the result data but has not run a query. Look at line 126 for the variable name and then find $variablename->execute

textex

6:50 pm on Sep 13, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My host fixed it. They said the DB crashed... Thanks for the help people!

phranque

10:29 pm on Sep 13, 2012 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



that means you didn't put proper error checking in your script after you invoked execute.