Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter musthave

    (@musthave)

    Thanks for the replies, I loaded it into the footer and it works like a dream. The script itself is a custom one that I use.

    I was obviously tired last night as the answer was obvious, thanks for pointing me to it though.

    Mike

    Thread Starter musthave

    (@musthave)

    Also on top of my blog I get :

    $dbh=mysql_connect (“localhost”, “**********”, “”) or die (‘I cannot connect to the database because: ‘ . mysql_error()); mysql_select_db (“*********”);

    I have taken the databse name out myself.

    Mike

    Thread Starter musthave

    (@musthave)

    Heres the first lines of the admin.php file in question :

    <?php
    require_once(‘../wp-config.php’);
    require_once(ABSPATH . ‘wp-admin/admin-functions.php’);
    auth_redirect();

    header(‘Expires: Mon, 11 Jan 1984 05:00:00 GMT’);
    header(‘Last-Modified: ‘ . gmdate(‘D, d M Y H:i:s’) . ‘ GMT’);
    header(‘Cache-Control: no-cache, must-revalidate, max-age=0’);
    header(‘Pragma: no-cache’);

    $dogs = $wpdb->get_results(“SELECT * FROM $wpdb->categories”);
    foreach ($dogs as $catt) {
    $cache_categories[$catt->cat_ID] = $catt;
    }

    get_currentuserinfo();

    Thread Starter musthave

    (@musthave)

    I had but to the wrong directory DOH.

    Have moved things now and it has updated but I get the following at the top of the page above the dashboard etc…

    $dbh=mysql_connect (“localhost”, “mhmp_wrdp1”, “”) or die (‘I cannot connect to the database because: ‘ . mysql_error()); mysql_select_db (“mhmp_wrdp1”);
    Warning: Cannot modify header information – headers already sent by (output started at /home/mhmp/public_html/wordpress/wp-config.php:23) in /home/mhmp/public_html/wordpress/wp-admin/admin.php on line 6

    Warning: Cannot modify header information – headers already sent by (output started at /home/mhmp/public_html/wordpress/wp-config.php:23) in /home/mhmp/public_html/wordpress/wp-admin/admin.php on line 7

    Warning: Cannot modify header information – headers already sent by (output started at /home/mhmp/public_html/wordpress/wp-config.php:23) in /home/mhmp/public_html/wordpress/wp-admin/admin.php on line 8

    Warning: Cannot modify header information – headers already sent by (output started at /home/mhmp/public_html/wordpress/wp-config.php:23) in /home/mhmp/public_html/wordpress/wp-admin/admin.php on line 9

    I do not know php and have no idea what this means

    Any help appreciated

    Mike

Viewing 4 replies - 1 through 4 (of 4 total)