Jump to content

Dren

New Members
  • Posts

    5
  • Joined

  • Last visited

Dren's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you! It works really fine, that was exactly what i was looking for
  2. Hi, i'm trying to create a function that generates a new user page for every users registered such as mydomain.tf/php?username=JhonDoe I'm new to php and all the codes I tried to write just failed ... Do you have any tutorials here or anyone who could help with simple codes? Thanks!
  3. oh my ... ._." i tried the IMPOSSIBLE and the error was just that "."... thank you It works now! This code is just a game for me to learn better php... I'll write the security soon!
  4. Hi, i have a problem with my code... I was dealing with registration and validation forms... and I encountered this problem. When i enter an e-mail my code doesn't recognize it as already in use... and adds another user with the same email. It doesn' say any error, just adds the new user with the same email in the table. here my code: <?php include ("phpconnect.php"); mysqli_select_db($connect, $database); echo "connected to $database<br>"; $name = $_POST['user']; $surname = $_POST['surname']; $password = $_POST['password']; $email = $_POST['email']; $reemail = $_POST['email']; $check = mysqli_query($connect, "SELECT * FROM users WHERE email = '.$email.'"); if(mysqli_num_rows($check) > 0){ echo "The email is already in use!"; }else{ mysqli_query($connect, "INSERT INTO users (name, surname, password, email) VALUES ('$name', '$surname', '$password', '$email')"); echo "added $email"; mysqli_close($connect); } ?> I tried everything by looking on google ...
  5. Dren

    Dren

    Hi, I'm Dren, an italian 22 years old girl. I really love videogames and in this last period i fell in love with browser games (my favourite is OGame). So... i'm a medium programmer (i know java, c, html, css, a little bit of javascript... i'm new for php but i saw some tutorials and it's pretty understandable). I'm here 'cause i'd like to learn more about php and to create a funny browser game such ogame but with more options... What about me? I'm a physic student at Milano university, i'd like to be an astronaut. I love videogames, i love pixel art, i love animals and nature, i'm vegan. I hope to be the welcome.
×
×
  • 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.