Jump to content
xisto Community

Daniel666

Members
  • Content Count

    7
  • Joined

  • Last visited

Posts posted by Daniel666


  1. 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


  2. In the United States the justice system is so lame. Prison is not any real deterant to crime because all of the human rights activist have ruined the prison system. What about the human rights of the victims of the criminals. Don't the victims rights need to be satisfied first? Prison is simply not harsh enough in the U.S.
    vujsa



    Only Humans deserve human rights..........someone who could rape and kill a child is not human

  3. 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);?>


  4. 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 :blink:

×
×
  • 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.