PHP in my header.php causing signup errors
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.
<div id=”header” onclick=”location.href=’http://ex-brief.com/’;” style=”cursor: pointer;”>
$stats = get_sitestats();
echo “”.$stats[ ‘users’ ].” Members”;
@mysql_select_db($database) or die( “Unable to select database”);
$result = mysql_query(“SELECT * FROM contacts”);
$num_rows = mysql_num_rows($result);
<div class=”description”><?php bloginfo(‘description’); ?></div>
- The topic ‘PHP in my header.php causing signup errors’ is closed to new replies.