Posts: 48
Threads: 11
Joined: Dec 2013
This is the error I get for a thumbs up (in green)
Quote:Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'michalk'@'localhost' (using password: NO) in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 39
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
: 1
Commentics
Sorry, there is a database problem.
Please check back shortly. Thanks.
Dislike0
This is the warning for a thumbs down (in red)
Quote:Randy says...
Another City Mini lover
PermalinkPermalink
FlagFlag
Like0
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'michalk'@'localhost' (using password: NO) in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 39
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
: 1
Commentics
Sorry, there is a database problem.
Please check back shortly. Thanks.
If I choose flag I get this message in blue
Quote:Sherry says...
I'm a BoB revolution lover
PermalinkPermalink
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'michalk'@'localhost' (using password: NO) in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 39
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home2/michalk/public_html/childchat.org/comments/includes/db/connect.php on line 40
: 1
Commentics
Sorry, there is a database problem.
Please check back shortly. Thanks.
Posts: 2,894
Threads: 59
Joined: Jun 2010
It looks like the vote.php file and the flag.php file are having trouble reading at least one, if not all, of the connection variables in the file details.php.
So in connect.php replace this line ..
PHP Code:
<?php
require_once 'details.php'; //load database details
with your connection variables from details.php.
The code in connect.php should now look something like this:
PHP Code:
<?php
@$cmtx_db_orig = mysql_query("SELECT DATABASE();");
@$cmtx_db_orig = mysql_result($cmtx_db_orig, 0);
$cmtx_mysql_database = ''; // The name of the database you created
$cmtx_mysql_username = ''; // Your MySQL username
$cmtx_mysql_password = ''; // Your MySQL password
$cmtx_mysql_host = 'localhost'; // Usually 'localhost'. Can also be an IP address.
$cmtx_mysql_port = ''; // In most cases leave blank.
$cmtx_mysql_table_prefix = ''; // In most cases leave blank.
require_once 'failure.php'; //load failure messages
.. except your connection variables will obviously be filled in.
Before you do that, you might first want to try setting normal file permissions for details.php.
Another thing to check is to make sure you have granted your MySQL user full permissions.
Posts: 48
Threads: 11
Joined: Dec 2013
That's it! Putting the connection variables right in the connect file worked perfectly
thanks