Jump to content

CrazyIvan

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

CrazyIvan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the reply! But unfortunately that typo I made when submitting this post hehe. My source is infact correct.
  2. Hey there I was just wondering if anyone has ever encountered the problem I am having before. I am running a sql query within my php script, which is returning an empty array. The funny thing is, if I echo out the sql query and run it in phpmyadmin, it does infact return one row. Could anyone shed some light on my situation? Thanks so much, here's a summary of my code below [code]function blah($id, $indicator){ $sql = 'SELECT ksi_detail.value FROM cornelius_saved_ksi_detail ksi_detail WHERE ksi_detail.saved_ksi_id_fk = '.$id.' AND   ksi_detail.indicator_id_fk = '.$indicator;                          $this->dao->fetch($sql);             $temp = $this->getItems(); } function getItems{          $detail = array(); while ($row=$this->getItem()) {     $detail[] = $row; } return $detail; }[/code]
  3. Hey there I was just wondering if anyone has ever encountered the problem I am having. I am running a sql query within my php script, which is returning an empty array. The funny thing is, if I echo out the sql query and run it in phpmyadmin, it does infact return one row. Could anyone shed some light on my situation? Thanks so much, here's a summary of my code below [code]function blah($id, $indicator){ $sql = 'SELECT ksi_detail.value FROM cornelius_saved_ksi_detail ksi_detail WHERE ksi_detail.saved_ksi_id_fk = '.$id.' AND   ksi_detail.indicator_id_fk = '.$indicator;                          $this->dao->fetch($sql);             $temp = $this->getItems(); } function getItems{          $detail = array(); while ($row=$this->getItem()) {     $detail[] = $row; } return $detail; }[/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.