I was wondering if anybody can help, i’m working on a module that requires a database query and will hopefully output the same data as an old PDO database query that I use to use outside of Drupal.
Within my module I am using the internal Drupal default connection method:
Database::setActiveConnection('DATABASE_NAME'); $db = Database::getConnection();
However what i’m having trouble with is finding out what the Drupal database query equivalents would be for the following PDO statements:
$stmt->bindParam(':test', $test); $outputArr[0] = $stmt->fetch(PDO::FETCH_NUM); $output = $stmt->fetchAll(PDO::FETCH_NUM);
Any help would be great.