Yea well nothing is shown when i use this
[code=php]
<?php
include(“includes/config.php”);
$sql = mysql_fetch_array(mysql_query(“Select * From player_account Where account = ‘$acc'”)) or die(mysql_error());
echo ”
<table border=”2″ align=”center”>
<tr> <th>Account information</th>
</tr> <tr>
<td>Email address:</td><td>$sql->e-mail</td>
</tr> <tr>
<td>Created:</td><td>$sql->created</td>
</tr> <tr>
<td>Last login:</td><td>$sql->lastlogin</td>
</tr>
</table><br>
“;
if($sql->banned <= 1){
$sql2 = mysql_fetch_array(mysql_query(“Select * from player_banned Where account = ‘$acc'”)) or die(mysql_error());
echo ”
<table border=”2″ align=”center”>
<tr><th>Criminal record</th>
</tr> <tr>
<th>Date:</th><th>Reason:</th><tr>View</th>
</tr>”;
$i = 0;
foreach($sql2 as $i){
$i++;
echo ”
<tr>
<td>$sql2->banned_time</td><td>$sql2->banned_res</td><td><a href=”account_home.php?subtopic=viewban&char=$sql2->name”>$sql2->name</a></td>
</tr>”;
}
}
?>
if i remove or die(mysql_error()); then the table will be shown and i get theses errors
[code=php]
Notice: Trying to get property of non-object in C:webserverwwwkattenaccount_home.php on line 40
Notice: Use of undefined constant mail – assumed ‘mail’ in C:webserverwwwkattenaccount_home.php on line 40
Notice: Trying to get property of non-object in C:webserverwwwkattenaccount_home.php on line 42
Notice: Trying to get property of non-object in C:webserverwwwkattenaccount_home.php on line 44