Daniel666
-
Content Count
7 -
Joined
-
Last visited
Posts posted by Daniel666
-
-
change mysql_query($sql, $con) to just mysql_query($sql)
Thanks dude, that fixed it
-
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
-
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
-
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);?>
-
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
-
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
-
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
Login System Using A Mysql Db How do i do this?
in Programming
Posted · Report reply
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 )