I’m using Mautic for an online petition and have it all set up and working great.
I’m looking for a method to show how many records have been submitted and the target number we’re looking to capture on the landing page displaying something like a horizontal thermometer.
Does anyone have advice on how to go about adding that functionality to Mautic?
I’m totally green coding on Mautic, but I was able to achieve the query outside of Mautic, but when I place the code into the landing page, PHP is getting disabled by the builder.
<!--?php
$sql = "SELECT * FROM `form_submissions` WHERE `form_id`=5;";
if ($result=mysqli_query($conn,$sql)) {
$rowcount=mysqli_num_rows($result);
echo "The total number of rows are: ".$rowcount;
}
?-->
Thanks for the suggestion, that points me in the right direction. It’s a bit over my pay grade, but I’ll look into it deeper. I do have the PHP script done and found that Mautic prevents calling PHP directly through the .htaccess file.