Minecraft_iPod;11001257 wrote:How do I turn on display_errors and error_reporting?
The manual page [man]configuration.changes[/man] lists the various ways to alter PHP directives.
Minecraft_iPod;11001257 wrote:Also, does this code work?
I don't know... you tell us.
Note I do see one thing that doesn't make much sense:
$strSQL = "INSERT INTO Members(firstname, username, password) values('" . $_POST["firstname"] . "', '" . $_POST["username"] . "', '" . $_POST["password"] . "')";
//Check to see if the values firstname, username and password are empty
if (empty($strSQL)){
Two things wrong with that if() statement:
It doesn't do what the code comment is saying it's doing.
It doesn't do anything useful since the 'else' branch will never be executed; why would $strSQL be empty when it was just defined (with a non-empty value) in the previous statement?
Minecraft_iPod;11001258 wrote:Also, are these properly named?
That depends what you mean by "properly," I suppose. You can name them whatever you want - it's your form, after all. However, none of the names you've given the three text fields match the names you're using in the PHP code, so unless you updated the code as well then you're still going to have problems.