Hmmm... Well Here's my full file:
PHP Code:
<?php
require("./global.php");
$shops = $DB_site->query("SELECT * FROM itemshops");
while ($shop = $DB_site->fetch_array($shops)) {
$i = 1;
$shop_id[$i] = $shop[shop_id];
$shop_name[$i] = $shop[shop_name];
$shop_image[$i] = $shop[shop_image];
$shop_rating[$i] = $shop[shop_rating];
$shop_profit[$i] = $shop[shop_profit];
$shop_total[$i] = $shop[shop_total];
$i++;
}
?>
<html>
<head>
</head>
<body>
<?php
echo "$shop_id[$i]";
?>
</body></html>
But it just doesn't show anything at all when I load up the page...