_MP Posted April 1, 2007 Share Posted April 1, 2007 On some sites i am getting this error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource The fix seems to be using a '@': @mysql_fetch_array() Why is it some sites or versions of php require this character? Should i always use it? Thanks, Bill Quote Link to comment https://forums.phpfreaks.com/topic/45181-mysql-error-not-a-valid-resource/ Share on other sites More sharing options...
MadTechie Posted April 1, 2007 Share Posted April 1, 2007 infact the @ doesn't "fix" it, it just surpresses the error message Quote Link to comment https://forums.phpfreaks.com/topic/45181-mysql-error-not-a-valid-resource/#findComment-219337 Share on other sites More sharing options...
papaface Posted April 1, 2007 Share Posted April 1, 2007 Should i always use it?You should NEVER EVER us the @ sign. It is bad coding to use it. Quote Link to comment https://forums.phpfreaks.com/topic/45181-mysql-error-not-a-valid-resource/#findComment-219345 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.