Folks: let me re-explain: Someone else wrote this for me because I DON'T KNOW php. Here are the 1st 28 lines of the app. PLEASE SEE MY COMMENTS AFTER THIS CODE.
<?php
include('connect/connect.php');
mysql_select_db($database) or die ("Unable to Connect to the database");
$woods = array();
$selectWood = "SELECT * FROM `wood`";
$queryWood = mysql_query($selectWood) or die(mysql_error());
while($item = mysql_fetch_array($queryWood))
{
$woods[$item['index']] = array($item['name'], $item['photo']);
}
$objects = array();
$selectObjects = "SELECT * FROM `objecten` ORDER BY ".$item['objectName']." ";
$queryObjects = mysql_query($selectObjects) or die(mysql_error()." $selectObjects");
while($item = mysql_fetch_array($queryObjects))
{
array_push($objects, array( $item['objectName'], split(";", $item['photos']), $item['price'], $item['base'],
$item['centerPiece'], $item['name'], $item['wood']));
}
without the ORDER BY clause the code works fine. I know a little SQL so I originally added the "order by". When it didn't work, that's when I came for help.
Sam