_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 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 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. 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
Archived
This topic is now archived and is closed to further replies.