I may need protection from myself…

August 1st, 2008 by Brian Leave a reply »

Today, I spent almost an hour staring at this line of code:
if ($this->dbi->affectedRows>0) {

Oh – and it would be helpful for you to know that affectedRows is a method in a database class.

A method, that’s right.  Unfortunately for me, method is not spelled, v-a-r-i-a-b-l-e.

Amazing what two little ( ) can do to your stress level.
if ($this->dbi->affectedRows()>0) {

Advertisement

Leave a Reply