• ok, here is the deal. I have a PHP script in my header.php file. the actual script works fine, but it causes the wp-signup.php to be missing the “Full Name” field, so nobody can signup…you get an error if you try.

    I have narrowed it down to the following php code, but I can not seem to figure out how I can include this php script and make this all work…anyone have any clue? thanks/

    THE CODE CAUSING THE ISSUE:

    the part of the code that is BOLD is the problem. the rest of the code is to show you where I have it in the file.

    <body>
    <div id=”page”>

    <div id=”header” onclick=”location.href=’https://ex-brief.com/&#8217;;” style=”cursor: pointer;”>
    <div id=”headerimg”>
    <h1>

    <?php
    $stats = get_sitestats();
    echo “”.$stats[ ‘users’ ].” Members”;
    ?>

    <?php

    $username=”*********”;
    $password=”*********”;
    $database=”*********”;

    mysql_connect(localhost,$username,$password);
    @mysql_select_db($database) or die( “Unable to select database”);

    $result = mysql_query(“SELECT * FROM contacts”);

    $num_rows = mysql_num_rows($result);

    echo $num_rows;

    mysql_close();

    ?>

    ExBriefs
    </h1>
    <div class=”description”><?php bloginfo(‘description’); ?></div>
    </div>

  • The topic ‘PHP in my header.php causing signup errors’ is closed to new replies.