Subject | Inserting NULLs as parameter |
---|---|
Author | Jiri Cincura |
Post date | 2008-04-12T11:16:56Z |
Hello,
I have a simple function in PHP:
@fbird_query('update or insert into polls (id, question, visible)
values (?, ?, ?) returning new.id', $this->id, $this->question,
$this->visible);
and when i.e. id param is null (indicating, that this is new, unsaved
object) I get error "Parameter 1: non-empty value required in".
Is there any way to use parameters and nulls?
--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com
I have a simple function in PHP:
@fbird_query('update or insert into polls (id, question, visible)
values (?, ?, ?) returning new.id', $this->id, $this->question,
$this->visible);
and when i.e. id param is null (indicating, that this is new, unsaved
object) I get error "Parameter 1: non-empty value required in".
Is there any way to use parameters and nulls?
--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com