Re: Upgraded to WPMU 2.7 now I have an error
the error is fixed when I remove this script I added to the header.php. Can anyone help me modify this to make it function correctly? Its an essential part of the site and it worked fine with MU 2.6 and BP Beta 1. 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/’;” 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>