Hello!
I have a problem with the so_sql function.
I have this code:
$content['nr'] = $count;
$content['subject'] = $content['_psubject'.$count];
$content['teacher'] = $content['_psubject'.$count.'_teacher'];
$content['mark'] = $content['_psubject'.$count.'_mark'];
$content['problems'] = $content['_psubject'.$count.'_problems'];
$content['index'] = $content['index1'];
$this->save($content);
When I execute this the first time, the entries get saved correctly, but when I execute this a second time and it wants to update this error appears:
Invalid SQL: UPDATE egw_schuelerakte_journal_subjects SET id=70,subject='k',nr=1,teacher='k',mark='k',problems='kk' WHERE index=7:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index=7' at line 1
Greetings equinox