I’ve got an object, I’m trying to add into my database.
I have this line
`$stmt->bind_param(‘ss’, $this->getTitle(), $this->getPrice() );`
But am getting this error/notice.
Is there a ‘correct’ way to do this?
Notice: Only variables should be passed by reference in C:
<i> </i>$foo = $this->getTitle(); $bar = $this->getPrice(); $stmt->bind_param('ss', $foo, $bar);
Help @kiwis spread the word by sharing this article on Twitter...