Trying to get form results to save to...

User 264425 Photo


Registered User
32 posts

Hi. I have created a form and tested it (without setting it to save to a database) and it works. Now I want my form results to save to an SQL database. So I completed that section under the STORING RESULTS in settings. But now I get this error after completing the form and clicking SUBMIT:

=====
Your form could not be submitted for the following reason(s):
Warning: [ err 2/line 74/datasavemysql.cls.php] PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known
Failed to open database [2002] SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known.
======

Any ideas what I did wrong. I created a database on the server but did not create a table. I did include a table name in the Table name field in STORING RESULTS.

Any help appreciated.
User 187934 Photo


Senior Advisor
18,075 posts

Hi David,
What did you enter for your server?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
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 personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com
http://ericrohloff.com/property/
User 10077 Photo


Senior Advisor
976 posts

It looks to me like the form is not connecting with the database. You may want to double check your database settings in WFB.
Brian

Want personal and specialized help with RLM, RSD or with converting your VSD (or other) site to RLM/RSD? Email me at cchelp@uscni.org or call 865-687-7698.
User 264425 Photo


Registered User
32 posts

You were correct. Thanks. I've got it fixed now. I do have another question but will create a new post.

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.