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.
Hello,
When I use the following query and php code there is no error but no result also.
$result= ('SELECT $row->title AS titeltje, TIMEDIFF($row->field_slagboom_in_datum_tijd,$row->field_slagboom_uit_datum_tijd) AS test');
while($row2 = mysql_fetch_array($result)) {
echo $row2['titeltje'];
}
Now I read about db_query but when I use this there is an error about a syntax error.
My question, is it possible to use mysql query? If not, how can I use my query in a working format?
Comments
Comment #1
renzomassaro CreditAttribution: renzomassaro commentedI tried many things and with Mysql_query('select...') it works...