Title: PHP in my header.php causing signup errors
Last modified: August 19, 2016

---

# PHP in my header.php causing signup errors

 *  [ex-brief](https://wordpress.org/support/users/ex-brief/)
 * (@ex-brief)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/php-in-my-headerphp-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.
 * <body>
    <div id=”page”>
 * <div id=”header” onclick=”location.href=’[http://ex-brief.com/&#8217](http://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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ex-brief](https://wordpress.org/support/users/ex-brief/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/php-in-my-headerphp-causing-signup-errors/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
