Jump to content


  • Posts

  • Joined

  • Last visited


Profile Information

  • Gender
    Not Telling

mingger's Achievements


Newbie (1/5)



  1. Hey I have a question (: when the user just closes the window without logging out, how will it be able to change the row of the database?
  2. Thank you very much for the help! I think that i can get it to work now
  3. Hello Thank you for the help, but im not very talented in javascript and ajax yet. So if you could write out the whole code for this, i would be so blessed
  4. Hey I hope this is the right place to put this question.... I'm trying to make a social network(Just to test what i can do), and i wanted to make a feature so that u could check if a person is online or not. So the person could start a chat session with a user, i have no idea how u could make this. So i hope that there is some genius that will help me with this. Thank you - Nicolaj
  5. Hey Thank you for helping. Im sorry for not saying the error, that was kinda dum Its not writing any errors back or anything when i press the submit button, and it does not change the email_a...
  6. Hey php gods! I recently watched a tutorial on how to make a membership system, it all turned out fine n stuff. So i wanted to expand and i found out a way to make a email activation "thingie", by making 2 new rows. 1 called email_code and a second called email_a(a for activate). When the person then registered, he woulld get a email where he should go to a link and write a code that was generate with a rand fuction and placed in the email_code row in the database. Then when the person wrote his username and the code in a form from the link in the email, the email_a would change from 0 to 1 if the username matched to the code he got. (sry for bad english). anyway here is the code: <!DOCTYPE html> <html> <head> <link href="style.css" type="text/css"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Activate email</title> </head> <body> <form action="" method="POST"> Username:<input type="text" name="username"> Code:<input type="text" name="activate"> <input type="submit" name="submit" value="aktiver"> </form> <?php include 'connect.php'; $username = $_POST('username'); $activate = $_POST('activate'); $submit = $_POST('submit'); $query = mysql_query("SELECT username AND email_code FROM user"); while ($row = mysql_fetch_assoc($query)){ $dbusername = $row['username']; $dbcode = $row['email_code']; } if ($_POST['submit']){ if ($username==$dbusername&&$code==$dbcode){ mysql_query("UPDATE users SET email_a = '1' WHERE username = '$username' AND email_code = '$activate'"); echo "Du er blevet aktiveret"; } else echo "Forkert data"; } else ?> </body> </html> Hope you can help me MinG
  7. Omfg, you are amazing !!! ;b btw i watched a tutorial by phpacademy on youtube. and when the error popped up i tried to fix it, but i couldnt. so i stopped half passed the video, and searched for answers. that maybe explains some missing code. Thank you again, if there is anything i can do to support you on some way, please let me know - MinG
  8. Can you please describe it with some php code ? im new to this shit. So i dont know what to do.
  9. Hey thanks for the reply. you can go to my test website here: and write some random text in the text boxes and press log in. i watched this tutorial: http://www.youtube.com/watch?v=4oSCuEtxRK8. here is the comments on English, i know there is something wrong with the else/if and dreamweaver says that its the else i now marked bold: echo "You are now logged in $username" } else echo "The password is wrong"; } else die("The user doesnt exist"); } else die("please write username and password."); Thanks again - MinG
  10. Hey php masters ! i ran into a problem while making my login page, im new to php so please dont rage at me the code that i think gives the problem is this: if ($numrows!=0) { while ($row = mysql_fetch_assoc($query)) { $dbusername = $row['username']; $dbpassword = $row['password']; } if ($username==$dbusername&&$password==$dbpassword) { echo "du er logget ind $username" } else echo "Adgangskoden er Forkert"; } else die("Denne burger findes ikke"); } else die("Angiv venligst brugernavn og adgangskode"); ?> Hope you can help me - MinG
  11. But i dont know how and what i should do
  12. it works for the most, but i want to make it as a php file so that it puts php code in it automatic.
  13. Okay now i know that it is not writable, but how to i make it writeable.
  • 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.