Is it considered normal using mysql errno-s to know what the error is and show up a user friendly error message?
e.g. for a duplicate entry mysql errno is 1062 and I show up a user friendly error message.
I ask this because there is also another way of doing it.
As shown in one of sitepoints tutorialsPHP Code:if (@mysql_result($result,0,0)>0) {
error('A user already exists with your chosen userid.\\n'.
'Please try another.');
So which way is better?





Bookmarks