I want to have from my database one specific entry. The application time entry. Semester is the name of my table and active is another column.
I’m trying this code:
$sqlQuery = $this->sql->select()->from('semester', 'applicationTime')->where('active = ?',1); $sqlStmt = $this->sql->prepareStatementForSqlObject($sqlQuery); return $sqlStmt->execute();
Unfortunately I’m getting thie error message:
Since this object was created with a table and/or schema in the constructor, it is read only.
I hope you can help me. Thank you!