Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP script causing login errors - WordpressMU
Old 02-06-2009, 06:06 PM PHP script causing login errors - WordpressMU
Experienced Talker

Posts: 38
Name: carl
Trades: 0
I have a WordpressMU powered site and can not seem to get any help in their forume, so I thought I would try here. Here is the issue:

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 <strong>BOLD</strong> is the problem. the rest of the code is to show you where I have it in the file.

&lt;body&gt;
&lt;div id="page"&gt;

&lt;div id="header" onclick="location.href='http://ex-brief.com/';" style="cursor: pointer;"&gt;
&lt;div id="headerimg"&gt;
&lt;h1&gt;

&lt;?php
$stats = get_sitestats();
echo "".$stats[ 'users' ]." Members";
?&gt;

<strong>&lt;?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();

?&gt;</strong>

ExBriefs
&lt;/h1&gt;
&lt;div class="description"&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/div&gt;
&lt;/div&gt;
Exbrief is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to PHP script causing login errors - WordpressMU
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14493 seconds with 12 queries