Jump to content

steeko1990

Members
  • Posts

    3
  • Joined

  • Last visited

steeko1990's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. sorry to be a pain but a cant get either of the suggestions to work. could some one be able to put a step by step for me i know i am asking a lot.
  2. sorry to be a bother i know i am really out of my depth but could anyone direct me to anywhere that i could find the corrent syntax for if rows >0.
  3. hi guys I am i am sorry to be a bother but i am new to php and I am currently in the process of creating, login and register pages that store a users name and password in to a database but I am finding it hard to source any code to check if the name exists and if it does tell the user that it does and that they have to choose a alternative user name. The code I have for updating the database is: <?php extract ($_POST); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("firstone", $con); $username = $_POST['username']; $password = $_POST['password']; // just to show the collection and storage of information from the form mysql_query("INSERT INTO details (username , password) VALUES ('$username', '$password')"); echo "your account has been created click next to continue"; mysql_close($con); ?>
×
×
  • 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.