PDA

View Full Version : Form Magic Working but not storing data - GoDaddy server


soaringpine
12-11-2007, 10:08 AM
Hi guys, everyone has been really helpful in assisting me with my issues, so first of all THANKS!

My latest issue is my forms aren't storing data in my Mysql databases. The emails and autoresponsers are being sent, but no data storage! I manually set up the fields in my tables (several times) but to no avail, no data storage!

I am not receiving any errors and I have double-checked my field names, host name, username, passwords, etc and can't figure it out.

I am using a Godaddy server (not sure if this matters) but was able to get this to work on another server that uses localhost as host name.

Any help is much appreciated!

xacto
12-12-2007, 05:29 AM
Create a file with a text editor and save it as mysqltest.php<?php $link = mysql_connect('hostname','username','userpassword' ); if (!$link) { die('Could not connect to MySQL: ' . mysql_error()); } echo 'Connection OK'; mysql_close($link); ?> Replace hostname (usually localhost but I am fairly sure godaddy does not use localhost it uses server names like mysql24.secure.net), username and userpassword with the details you use for your database.

Upload to your server to a folder that’s viewable via a browser.

Load the file in your browser and run it mysqltest.php

If a connection is made, the resulting page will display ‘Connection OK’.