hello ppls
the problem
notice it only shows 5 items on the picture above..
the databse shows 6 items
the code
Code:
<?php
error_reporting (error_reporting (0) & ~ E_NOTICE);
require_once('auth.php');
include_once("config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>GM Tools | Players</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="navbar">
<ul>
<li><a href="ban.php"><span>Ban/Mute</span></a></li>
<li><a href="tickets.php"><span>Tickets</span></a></li>
<li><a href="mail.php"><span>Mail</span></a></li>
<li><a href="online.php"><span>Online Players</span></a></li>
<li><a class="right" href="items.php"><span>Item Lookup</span></a></li>
<li><a class="right" href="creatures.php"><span>Creature Lookup</span></a></li>
</ul>
</div>
<h1>Welcome to the search what items a character owns!<br><a href="gm-index.php">Return to Index</a></h1>
<br><br><br><br><br><br><br>
<form id="charsubmit" name="charsubmit" method="post" action="playeritems.php">
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="112"><b>Character Name</b></td>
<td width="188"><input name="charC" type="text" class="textfield" id="charC" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit" /></td>
</tr>
</table>
</form>
<?PHP
$charC = $_POST['charC'];
mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS);
mysql_select_db(MYSQL_LOGON);
$result=mysql_query("SELECT * FROM characters WHERE name like '%$charC%'");
$rows = mysql_num_rows($result);
while ($players = mysql_fetch_assoc($result)) {
$gold = round(($players['gold'])/1000);
$acct = $players['guid'];
}
?>
<br>
You searched the character named: <h1><?php echo $charC; ?></h1>
<br><br><br><br>
<table border="1" width="150" align="center" cellpadding="2" cellspacing="0">
<tr>
<th><b>Item IDs "<?php echo $charC; ?>" owns</b>
</tr>
<?PHP
$charC = $_POST['charC'];
mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS);
mysql_select_db(MYSQL_LOGON);
$result2 = mysql_query("SELECT * FROM playeritems WHERE ownerguid = $acct");
$row2 = mysql_fetch_array($result2);
//$rez = $row2['entry'];
while ($players2 = mysql_fetch_assoc($result2))
{
echo '<td>'.$players2['entry'].' </td>';
echo '</tr>';
}
?>
</table>
</body>
</html>
does anyone know where im messing up? thanks for reading :]