Ok, im using a small template thing on my script. I keep the HTML for it in MySQL, and i use this query to get it out:
Code: Select all
SELECT value FROM sn_config WHERE name='skin'Code: Select all
mysql_fectch_object(mysql_query("SELECT value FROM sn_config WHERE name='skin'"))Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource
However, I can run that same query in phpMyAdmin and not get any error at all. Plus, when i try to print mysql_error() or mysql_errno() nothing will be outputted.
I am extreamly confused. Why is it working in one place, and not another? I also am wondering why there is no error message from MySQL.