Drupal db_query error need help
Posted
by Gobi
on Stack Overflow
See other posts from Stack Overflow
or by Gobi
Published on 2010-04-16T11:33:35Z
Indexed on
2010/04/21
0:43 UTC
Read the original article
Hit count: 547
Hi drupal pals,
im using drupal 6.15 and doing my first project in drupal . i got an issue while running the below query with db_query
i have drupal,delhi keywords in column 'tag' with table name tagging.
db_query(SELECT * FROM {tagging} WHERE tag LIKE '%drup%') wont retrieve the correct output.
it show null but the query modified like this,
db_query(SELECT * FROM {tagging} WHERE tag LIKE 'drup%') retrieve "drupal" as output
finally i used the php core mysql_query
mysql_query(SELECT * FROM tagging
WHERE tag LIKE '%drup%') it retrieve the exact n correct output "drupal" .
is any one have solution ,
Thanxs, Gobi
© Stack Overflow or respective owner