Like the question states, I would like to create a new directory in the "Users" folder on the server when a user registers their account.
PHP:
$username = $_POST['username'];//STRING
$username = strip_tags($_POST['username']);
$username = stripslashes($_POST['username']);
$username = mysqli_real_escape_string($conn,$_POST['username']);
etc.
etc.
$sql = "INSERT INTO tbl_users
VALUES ('$username', '$password', '$countryCode','$mobileNumber','$email','$profilePicture','$fname','$mname','$lname','$gender','$birthday','$occupation','$signupdate',0)";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully in tbl_users";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
I'm quite new to php and I don't really understand how most of the commands work.
I am making an app in java and I want the onClick to add data to a database as well as create the following file hierarchy:
Users(Already there)
Username(Of user registering)
Media
Pictures
Videos
Audio