Well, that’s why on my site for some odd reason, I get a 404 error, which is in a file that says everything about it on the site. Create.php is not displayed. Just 404 (Along with aaa.php, but I can still use HTTP services to access it). This is an image of my file list: http://ctrlv.in/485842
This is my 404 error: http://ctrlv.in/485844
Last but not least, this is my code:
<?php
$servername = "localhost";
$username = "robx10ho_users";
$password = "fakiefakie";
$dbname = "robx10ho_usersuse";
$usn = $_REQUEST['usn'];
$psw = $_REQUEST['psw'];
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "INSERT INTO login (Username, Password)
VALUES ($usn, $psw");
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn->error;
}
$conn->close();
?>
source
share