Jump to content

Php File does not work, Help


quitifua6

Recommended Posts

Hi everyone, I don’t know if I am in the right place to ask this question. But this is my problem I am running in httpdocs and httpsdocs my hosting company is globat.com. I am trying to create a php file so people can create user names and password. I already created the tables in phpmyadmin, made a sing up form call signup and a php file call make.php, my php file looks like this:

<?

//replace username and password with your mysql name and password

$conn = mysql_connect("localhost","username","password");

//select the database

$db = mysql_select_db("users_db");

$username = $_POST["username"];

$password = $_POST["password"];

$email = $_POST["email"];

//insert the values

$result= MYSQL_QUERY("INSERT INTO users (id, username, password, email)".

   "VALUES ('NULL', '$username', '$password', '$email')");

echo "Your name and password have been submitted into our database : )";

?>

</body>

</html>

I tried  testing  the sign up form and when I click submit this is the error I guet: The directory containing /usr/local/psa/home/vhosts/yorhot.com/httpdocs/make.php cannot be world writable.

How Do I Fix This?

:(

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.