All Products 
Username / Customer#
Password
Log In
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Mysql doesn’t save information

Viewing post 1 to 3 (3 total posts)
Profile picture of ECA_ICS

eca_ics said 1 year, 1 month ago:

Hi,
I have the following code:

$MySQLDatabaseName=’ecXXXX’;
$MySQLDatabaseLogin=’ecXXXX’;
$MySQLDatabasePassword=’ecxxxxxxxx’;
$HostServerName=’ecxxxxx.db.8221764.hostedresource.com’;

$linkdb=@mysql_connect($HostServerName,$MySQLDatabaseLogin,$MySQLDatabasePassword) or die(“Couldn’t connect to MySQL!”);
@mysql_select_db($MySQLDatabaseName,$linkdb) or die(“Error: “.mysql_error().’
Error No: ‘. mysql_errno());

AND

$query = “INSERT INTO authors (…..)
VALUES ( ……..)”;

if (@mysql_query($query)) {
print “Information saved successfully
“;
}

It’s working fine locally.But online, I get “Information saved successfully” but when I look into the database, it is empty.
What is wrong?

http://www.africaneconomicconference.org/2012/submit-paper/

Profile picture of TimB

GoDaddy Expert timb said 1 year, 1 month ago:

@eca_ics

You will want to first ensure that your connection string information is correct using the steps in this article:

Locating Your MySQL Database Connection Strings

If your settings are correct, please contact our Support Team to review your database in order to determine the cause.

Tim B

Profile picture of ECA_ICS

eca_ics said 1 year, 1 month ago:

@timb
I copied the connection string information from “MySQL Database Information” page.
I will contact the Support Team.
Thanks for your prompt reply.

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.