This is the problematic part of code:
$query = mysql_query("INSERT INTO members
(user, pass, mail, country, city, www, credo)
VALUES ('$_POST[user]','$_POST[pass]', '$_POST[mail]',
'$_POST[country]', '$_POST[city]', '$_POST[www]', '$_POST[credo]')")
or die ("Error - Couldn't register user.");
I got the die error.
How could I find more specific part which cannot be executed ?
I tried to eliminate fields one by one – without result.
This should present you the reason behind your failed query, and at the very least prevent some security concerns:
Small Improvement
Medium Improvement
Advanced Improvement
If you’re starting a new project, or at a point where you can still change your ways, I vividly recommend the use of PHP PDO to prevent many security issues related the current database connection you’re using.