normally the type doesn’t matter.
What do you want to do with that script?
I see you try to get items which have a given price.
Then you are looping thrue all items and you store them again and again into the same var.
then you have a form where you echo some fields from the last item??
Are you sure this is what you want?
btw. you can use modx-db-api-functions in evo
see:
http://wiki.modxcms.com/index.php/API:DBAPI
<?php
$result=$modx->db->select('*','catalogue_items','price_net="'.$param1.'"');
while ($row = $modx->db->getRow($result))
{
print_r($row);
}
or
<?php
$result=$modx->db->select('*','catalogue_items','price_net="'.$param1.'"');
$rows=$modx->db->makeArray($result);
print_r($rows);