Php Code: Login system
This is a login System, it has 3 files
login.php
register.php
lastmember.php
once a user has been logged in it will return him/her to the home page. to see if they are logged in use the code at the bottom of my script
When a user registers, it will update the lastmember.php page, so you can include it in your home page by using include('lastmember.php'); ?> and it shows the last member that signed up. you can add/change the stuff in the last member.php page but i suggest not changing anything, because i hate people saying they changed so and so and it doesn't work. so just leave it alone :P
Enjoy ;)
login.php
register.php
lastmember.php
once a user has been logged in it will return him/her to the home page. to see if they are logged in use the code at the bottom of my script
When a user registers, it will update the lastmember.php page, so you can include it in your home page by using include('lastmember.php'); ?> and it shows the last member that signed up. you can add/change the stuff in the last member.php page but i suggest not changing anything, because i hate people saying they changed so and so and it doesn't work. so just leave it alone :P
Enjoy ;)
Go to Homepage
prince
Posted on 24 January, 2011 - 09:09 AM
1
prince
prince
Posted on 24 January, 2011 - 09:09 AM
2
sir where i can find the register.php? and we're will i put it? in the notepad or what?.. im kinda confuse
abros2k11
Posted on 24 January, 2011 - 09:09 AM
3
sir, I have 3 seperate webpages with logins. I have created a 4th login page. When I login using my login credentials in the 4th login page I should get Links to the other 3 pages. When i cick on any link it should use the same credentials which I used for the 4th page. i dont have to enter it again, How to do it??
Salamander
Posted on 24 January, 2011 - 09:09 AM
4
how do i use it ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
joooby
Posted on 24 January, 2011 - 09:09 AM
5
It did not work. I can login without password or username!
joooby
Posted on 24 January, 2011 - 09:09 AM
6
It did not work. I can login without password or username!
rakelechi
Posted on 24 January, 2011 - 09:09 AM
7
trying to retrieve data from web_form fields; user input from web form fields into PHP variable value. i need to access values from a data field in the form via PHP script. pls convert this HTML line ...i not able to replace the punctuation marks apprioprately and also, more adition i need... so i can access it right here
rakelechi
Posted on 24 January, 2011 - 09:09 AM
8
trying to retrieve data from web_form fields; user input from web form fields into PHP variable value. i need to access values from a data field in the form via PHP script. pls convert this HTML line ...i not able to replace the punctuation marks apprioprately and also, more adition i need... so i can access it right here
rakelechi
Posted on 24 January, 2011 - 09:09 AM
9
trying to retrieve data from web_form fields; user input from web form fields into PHP variable value. i need to access values from a data field in the form via PHP script. pls convert this HTML line ...i not able to replace the punctuation marks apprioprately and also, more adition i need... so i can access it right here
braydenyat
Posted on 24 January, 2011 - 09:09 AM
10
1. PUT THE PAGES ON YOUR WEBHOST.
2. MAKE A DATABASE
3. EDIT LASTMEMBER.PHP TO THE DATABASES INFORMATION. For example:
// set your infomation.
$dbhost='localhost';
$dbusername='username';
$dbuserpass='password';
$dbname='databasename';
//connect to the mysql database server.
mysql_connect ($dbhost, $dbusername, $dbuserpass);
mysql_select_db($dbname) or die('Cannot select database');
$row1 = mysql_query("SELECT * FROM users ORDER BY uid DESC LIMIT 1") or die(mysql_error());
echo "$row1";
while($row=mysql_fetch_array($row1))
{
echo "
}
?>
Any more questions? email me! braydengyates@aol.com
2. MAKE A DATABASE
3. EDIT LASTMEMBER.PHP TO THE DATABASES INFORMATION. For example:
// set your infomation.
$dbhost='localhost';
$dbusername='username';
$dbuserpass='password';
$dbname='databasename';
//connect to the mysql database server.
mysql_connect ($dbhost, $dbusername, $dbuserpass);
mysql_select_db($dbname) or die('Cannot select database');
$row1 = mysql_query("SELECT * FROM users ORDER BY uid DESC LIMIT 1") or die(mysql_error());
echo "$row1";
while($row=mysql_fetch_array($row1))
{
echo "
$row[username]
";}
?>
Any more questions? email me! braydengyates@aol.com
teddy
Posted on 24 January, 2011 - 09:09 AM
11
hello sir this part make un error""if ($email_existɬ|$username_existɬ) {
echo "The username or email is already in use";
""
echo "The username or email is already in use";
""
mhervi
Posted on 24 January, 2011 - 09:09 AM
12
hello.please help me on doing how to make a simple log in system that when you click the log in it will appear the last output..where you can only use two(2)notepad.
kahtan
Posted on 24 January, 2011 - 09:09 AM
13
hi
how can i make the mysql
so how many tables and users and names and those things
thx for the codes i hope they work for me :)
how can i make the mysql
so how many tables and users and names and those things
thx for the codes i hope they work for me :)
![]() | You can leave comments once you sign in/up. |





