Hi everyone,
So I am using the provided web-builder and I am trying to add an HTML segment or block. I add the HTML block on to the page, and then I attempt at writing a php script in the html section. When I publish or preview the website it says:
Parse error: syntax error, unexpected '&'
and when I check where this error happens... it happens every time when i have a '->' in my code... for example:
I have the line
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
which gets turned into:
if ($conn>connect_error) {
die("Connection failed: " . $conn>connect_error);
I have tested my code (and it works) by putting it directly in the file (using file manager) but the problem is that anytime I want to make a small aesthetic adjustment using the builder it will overwrite my code that I added using the manager...
Does anyone know of a solution?
So I am using the provided web-builder and I am trying to add an HTML segment or block. I add the HTML block on to the page, and then I attempt at writing a php script in the html section. When I publish or preview the website it says:
Parse error: syntax error, unexpected '&'
and when I check where this error happens... it happens every time when i have a '->' in my code... for example:
I have the line
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
which gets turned into:
if ($conn>connect_error) {
die("Connection failed: " . $conn>connect_error);
I have tested my code (and it works) by putting it directly in the file (using file manager) but the problem is that anytime I want to make a small aesthetic adjustment using the builder it will overwrite my code that I added using the manager...
Does anyone know of a solution?