I get the "Error establishing a database connection" however, this works just fine:
<?php
$db = @mysql_connect('localhost', 'wordpress_cgps', '****');
if (!$db) echo "connection failed";
else echo "connection succeeded";
?>I get the "Error establishing a database connection" however, this works just fine:
<?php
$db = @mysql_connect('localhost', 'wordpress_cgps', '****');
if (!$db) echo "connection failed";
else echo "connection succeeded";
?>Never mind, it turned out to be a MYSQL privilege issue. Setting define('WP_DEBUG', true); in wp-config.php was helpful
Have you looked at using http://codex.wordpress.org/Class_Reference/wpdb ?
Don't forget to mark the topic solved, if it has been.
This topic has been closed to new replies.