PHP Causing Problems with Table?
Posted: Fri Mar 26, 2010 4:30 pm
In most of my pages, I use an echo statement to display a table. In my header file, I have a div that displays a table with the users login information. For some reason the table isn't displaying like a table, instead its just a line. I just can't figure out what's wrong! Any help?
Code: Select all
<div class="login">
<?
include('config.inc.php');
require_once('mysqli_connect.php');
if(!validate_login($_COOKIE['username'], $_COOKIE['password'])) {
echo 'Sorry, you\'re not logged in. Go <a href="login.php">here</a>';
mysqli_close($dbc);
include ('includes/footer01.inc.php');
exit();
} else {
$EG = getUsersMoney();
echo'<table>
<tr>
<td><span class="loginBold">UN: </span></td>
<td>' . $_COOKIE['username'] . '</td>
</tr>
<tr>
<td><span class="loginBold">EG: </span></td>
<td>' . $EG . '</td>
</tr>
<tr>
<td><span class="loginBold"><a href="http://liveequian.com/logout.php">Logout</a></span></td>
</tr>
</table>';
}
?>
</div>