UPDATE: Ok, problem is with the query....
Is there some trick to using variables in a DB query?
$cur= odbc_exec( $cnx, "select Index,ItemName,ItemOwner,Description,ItemPrice,ImageURL from Inventory where Type='$type' and Category='$criteria'" );
works fine, just returns no entries, cos it's not valuating the variables, while
$cur= odbc_exec( $cnx, "select Index,ItemName,ItemOwner,Description,ItemPrice,ImageURL from Inventory where Type=\"$type\" and Category=\"$criteria\"" );
returns the error "too few parameters, expected 1.,SQL state 07001 in SQL exec or something, what's wrong with my syntax?