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

renzomassaro’s picture

I tried many things and with Mysql_query('select...') it works...