PHP 5.6 deprecated, errors thrown in...

User 546323 Photo


Registered User
1 post

My host no longer supports PHP 5.6; MINIMUM of PHP 7.2 as 5.6 was deprecated years ago and is a severe security risk.

My /inc/db.php throws errors because of this.

I need the dp.php and I guess login.php and any other code updated to support PHP 7.x or greater. They would be willing to revert back to 7.0 or 7.1 for a few days if necessary, but I need a real fix.


Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/myaccount/public_html/premier/inc/db.php:14 Stack trace: #0 /home/myaccount/public_html/premier/login.php(6): include() #1 {main} thrown in /home/myaccount/public_html/premier/inc/db.php on line 14

If I start to change mysql### to mysqli### I get other errors; I'm sure you have a solution for this but I cannot find it in the forums.
User 187934 Photo


Senior Advisor
20,188 posts
Online Now

I would open a support topic if your having issues with submitting to a database. The form builder uses PDO statements so it's secure.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 10077 Photo


Senior Advisor
1,095 posts

Rick Berry wrote:
My host no longer supports PHP 5.6; MINIMUM of PHP 7.2 as 5.6 was deprecated years ago and is a severe security risk.

My /inc/db.php throws errors because of this.

I need the dp.php and I guess login.php and any other code updated to support PHP 7.x or greater. They would be willing to revert back to 7.0 or 7.1 for a few days if necessary, but I need a real fix.


Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/myaccount/public_html/premier/inc/db.php:14 Stack trace: #0 /home/myaccount/public_html/premier/login.php(6): include() #1 {main} thrown in /home/myaccount/public_html/premier/inc/db.php on line 14

If I start to change mysql### to mysqli### I get other errors; I'm sure you have a solution for this but I cannot find it in the forums.


I just created a form with WFB and had it write the data to a MySQL database on a server running php7.2. I didn't have any issues.

Have you checked what version WFB you are using? I'm using the latest -- WFB 2.9 Build 5557.
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.

Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.