Search found 5 matches

by zxspectrum2
Sat Oct 26, 2024 5:54 pm
Forum: Off Topic Section
Topic: PHP inside HTML not running
Replies: 9
Views: 4061

Re: PHP inside HTML not running

I found the issue I was having and can now see the data on screen - it was a database name typo!!!!
Thanks to all for your replies

PS It was a list of downloads which included an image on the same line, though that bit still needs work :-)
by zxspectrum2
Thu Oct 17, 2024 2:09 pm
Forum: Off Topic Section
Topic: PHP inside HTML not running
Replies: 9
Views: 4061

Re: PHP inside HTML not running


Looking at the code, I wonder if you can achieve your objective by using one of the Database/Tables extensions (see https://www.wysiwygwebbuilder.com/extensions.html ) either paid or unpaid. With some you can insert your own MySQL query and you can rely upon the extension to deal with the ...
by zxspectrum2
Thu Oct 17, 2024 2:08 pm
Forum: Off Topic Section
Topic: PHP inside HTML not running
Replies: 9
Views: 4061

Re: PHP inside HTML not running


I will need to test this outside of the web builder app.

You should note that you cannot "Preview" php locally in the software you will need to publish to your host/server before you will see the results. Or you will need to install the likes of xampp to set with on your PC.


Yes, I know I ...
by zxspectrum2
Thu Oct 17, 2024 10:05 am
Forum: Off Topic Section
Topic: PHP inside HTML not running
Replies: 9
Views: 4061

Re: PHP inside HTML not running

Okay thanks Pablo, I will need to test this outside of the web builder app.

Regards
Ken
by zxspectrum2
Thu Oct 17, 2024 9:26 am
Forum: Off Topic Section
Topic: PHP inside HTML not running
Replies: 9
Views: 4061

PHP inside HTML not running

I have a HTML object and inside it is this PHP script, database details blanked out for here :-
<?php
echo "DB Test";
// Database connection details
$servername = "";
$username = " ";
$password = "";
$dbname = "";
echo "DB Test connecting";
// Create connection
$conn = new mysqli($servername ...