Hello again,
I am getting this error message: Call to a member function updateCal() on null etc
This is the call to the query:
$this->f3->set('update',$test->updateCal($storetext,$compdate1));
This is the query itself:
public function updateCal($storetext,$compdate1) {
return $this->db->exec("UPDATE calendar SET Results = ? WHERE Competition_Date = ?", array(1=>$storetext,2=>$compdate1));
}
The query works fine if I enter it into phpmyadmin with the strings that are passed substituted for the placeholders.
I'm sure it is likely to be obvious but it has me stumped.
Thanks in anticipation.
Harry