Sql query executing perfectly in phpmyadmin but giving warning while running on page

Posted by saurav on Stack Overflow See other posts from Stack Overflow or by saurav
Published on 2010-03-23T05:55:12Z Indexed on 2010/03/23 6:03 UTC
Read the original article Hit count: 387

Filed under:
|

i don't know whats wrong with this sql query.

SELECT * FROM main WHERE key LIKE '%$word%'

its giving results in phpMyAdmin but giving warning while executing it in a php page.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

© Stack Overflow or respective owner

Related posts about mysql-query

Related posts about mysql