For some reason this command is just bringing up well... numbers basically i guess saying if it's positive or false. What i'm doing is trying to get all of the game's items put them in array for the moment then put them on the page in a tad bit so i can well see them and help me later on. Here's the code for it but it's not seeming to work out for some very odd reason. It just shows "1" for all things meaning that's valid i'm guessing.
$item = array(
'id' =>array(),
'name'=>array(),
'maint type'=>array(),
'rarity'=>array(),
'stack size'=>array(),
'sub type'=>array(),
'ilvl'=>array()
);
$conn = mysql_connect($dbhost,$dbuser)
or die ('Error connecting to mysql');
mysql_select_db($dbname);
$query = 'SELECT * FROM item';
$result = mysql_query($query);
while($row = mysql_fetch_array($result,MYSQL_BOTH)){
global $i;
$item['id'][]=$row[$i]['id'];
$item['name'][]=$row[$i]['name'];
$item['main type'][]=$row[$i]['main_type'];
$item['rarity'][]=$row[$i]['stack_size'];
$item['sub type'][]=$row[$i]['sub_type'];
$i= $i++;
};
echo $item['id'][0],$item['name'][0],$item['main type'][0];
Is there any way to get it to actually show the bloody text within the column? I thought that's what i was doing via this thing... but who knows.