[Solved] Twig does not render just anything

Ok. I’ve found the problem! In PHP version 7.1.8 there is a problem with PCRE library. It uses outdated 8.38 version internaly. I don’t know what is the exact problem but I’ve found that it has execution problem with complex search patterns. I had problems with PHPMailer too and I found that it’s not evaluating … Read more

[Solved] How to get the value from and save to Database in php

You have at least two options here: hidden fields everywhere if data (best approach): <td> <input type=”checkbox” name=”checkBox[]” id=”ic” value=”{{ user.id }}” /> <input type=”hidden” value=”{{user.lastname}}” name=”v1[{{ user.id }}]”></td> <td data-title=”id”>{{user.id}}</td> <td data-title=”firstName”>{{user.firstname}}</td> <td data-title=”lastName” contenteditable=”true”>{{user.lastname}}</td> and on serverside you do: …. your code …. foreach ($user as $id) { $lastname = $v1[$id]; … save … Read more