hi i have tried putting this in my field,

<?php
$amount = db_result(db_query('SELECT MAX(amount) FROM {table})); 
echo $amount
?>

But it doesnt display anything in the field.

Is this supposed to happen?

how can I fetch data from my database?

Thanks for any help

Comments

hockey2112’s picture

Any luck getting something like this to work? I need to pull in some fields from an Ubercart add-on module in a Views report.