Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
hockey2112 CreditAttribution: hockey2112 commentedAny luck getting something like this to work? I need to pull in some fields from an Ubercart add-on module in a Views report.