mertch Posted September 8, 2010 Share Posted September 8, 2010 Hi everyone, Is there a script design to find the error like the one below which could be able to show the error in red and suggest to replace for example the '.' by the ',' one ? $db= mysql_connect('localhost'.'login','password') And should the script be place in the same file as the error ? A few month ago, I came accross php debug. Do I have to put this script in the same file as the one to be check out ? Thanx. Link to comment https://forums.phpfreaks.com/topic/212854-is-there-a-way/ Share on other sites More sharing options...
Pikachu2000 Posted September 8, 2010 Share Posted September 8, 2010 The problem is that errors can be very context dependent. The above could be an error, or it could be intentionally concatenated, making the 'error' an incorrect number of parameters, or if no password is used, there would be no error at all. See where this is going? Link to comment https://forums.phpfreaks.com/topic/212854-is-there-a-way/#findComment-1108736 Share on other sites More sharing options...
mertch Posted September 9, 2010 Author Share Posted September 9, 2010 Thank you Pikachu2000. Link to comment https://forums.phpfreaks.com/topic/212854-is-there-a-way/#findComment-1109063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.