do after adding with a new line

Questionsdo after adding with a new line
Jan Valenta asked 10 months ago

Is the ID added after the operation?

if I have the code run unblocked it fails to add a new record:

//—-doesn’t work-I think because of the missing ID??
//$e[“on_insert”] = array(“add_rec”, null, true);
//$g->set_events($e);

 

function on_insert($data)// —
{
$headers = ‘Content-Type: text/html; charset=utf-8’ . “\r\n” . ‘From: [email protected]’;
$message = $data;
// Send
$message = wordwrap($message,70) . “\r\n”;
$success = mail(‘[email protected]’, ‘Nová porucha’, $message, $headers);
if (!$success) {
$errorMessage = error_get_last()[‘message’];
}
print_r($message);
}

Your Answer

13 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?