Jump to content
xisto Community

Daniel666

Members
  • Content Count

    7
  • Joined

  • Last visited

  1. Alright, i got a login and registration system working, the last thing i need is how to show differant users differant things, lets say i want the admin to see "Welcome Admin" and i want a member to see "Login successful" how would i do that?(sorry if im annoying you guys now )
  2. Thats a nice tutorial, i wish i had that when i first re-formatted a computer (remembers and shivers)i remember my backup drives didnt copy properly, then there was the bit where i had NO idea which commands to put in and was just guessing to get the windows disk to startup ^^i did it by deleting first with a floppy then reinstalling, the long way round i know, but it was my first time
  3. Only Humans deserve human rights..........someone who could rape and kill a child is not human
  4. can someone explain to me whats wrong with the following code, im trying to make a table called person, only thing is, for some reason its not working<?php$con = mysql_connect("mysql3.xxxxxxxx.com","xxxxxxxx_forum","xxxxxxx");if (!$con) { die('Could not connect: ' . mysql_error()); }// Create table in my_db databasemysql_select_db("xxxxxxxx_forum", $con);$sql = "CREATE TABLE person (FirstName varchar(15),LastName varchar(15),Age int)";mysql_query($sql,$con);mysql_close($con);?>
  5. Hi guys, ive got a registration system that looks something like the one below: <html><body><form action="insert.php" method="post">Firstname: <input type="text" name="username" />Lastname: <input type="text" name="password" /><input type="submit" /></form></body></html> Then i have inset.php, which looks like the following: <?php$con = mysql_connect("localhost","autobot","abc123");if (!$con){die('Could not connect: ' . mysql_error());}mysql_select_db("my_db", $con);$sql="INSERT INTO person (username, password)VALUES('$_POST[username]','$_POST[password]')";if (!mysql_query($sql,$con)){die('Error: ' . mysql_error());}echo "1 record added";mysql_close($con)?> Now my question is, how do i create a login system using PHP and MYSQL, because im missing something obvios here i think.~Thank you
  6. I use google, heck, i didnt even know lycos existed before my tech teacher used it one of his programming examplesI've always used google, its probably because my its always been my homepage when im on my dads computer
  7. I have a 7 character password, completly random string of numbers my dad gave me when i was hacked on a game, ive used it for 5 years now, its in my head and probably wont ever come out
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.