Code: Select all
if($statement = $this->connection->prepare("INSERT INTO ".TBL_SAVED_QUOTES."(quotename, userid, timestamp, quotedata) VALUES (?, ?, ?, ?)")){
$null = NULL;
$statement->bind_param('siib', $quotename, $userid, time(), $null);
$statement->send_long_data(3, serialize($quotedata));
$savedQuote = $statement->execute();
$statement->close();
}