keyhan
Distributed System Orchestrator
LEVEL 1
200 XP
In this tutorial, we are going to create my new tutorial and it's called "Profile Information Page in PHP/MySQL". For this tutorial, you can merge the previous tutorial on How To Create Registration Page In PHP/MySQL and How To Create Login Page In PHP/MySQL.
Let's start with, kindly follow the steps below.
Creating Registration Page
Kindly follow the procedure in this tutorial on How To Create Registration Page In PHP/MySQL.
Creating Login Page
Then, we are going to create the login page on How To Create Login Page In PHP/MySQL.
Creating Profile Information Page
After the steps above, this source code below will show the profile information of one member after the registration and login process. Kindly open your HTML Editor and kindly copy and paste after your BODY tag of your page.
And, that's it. This is the steps on how to create a simple Profile Information Page with Registration Page and Login Page see you in my next tutorial.
Share us your thoughts and comments below. Thank you so much for dropping by and reading this tutorial post. For more updates, don’t hesitate and feel free to visit this website more often and please share this with your friends or email me at [email protected]. Practice Coding. Thank you very much.
Download
Let's start with, kindly follow the steps below.
Creating Registration Page
Kindly follow the procedure in this tutorial on How To Create Registration Page In PHP/MySQL.
Creating Login Page
Then, we are going to create the login page on How To Create Login Page In PHP/MySQL.
Creating Profile Information Page
After the steps above, this source code below will show the profile information of one member after the registration and login process. Kindly open your HTML Editor and kindly copy and paste after your BODY tag of your page.
- <div id="container">
- <div id="left-nav">
- <div class="clip1">
- <a href="updatephoto.php" title="Change Profile Picture"><img src="<?php
echo
$row
[
'profile_picture'
]
?>
"><button>Update Picture</button></a>
- </div>
- <div class="user-details">
- <h3><?php
echo
$firstname
?>
<?php
echo
$lastname
?>
</h3>
- <h2><?php
echo
$username
?>
</h2>
- </div>
- </div>
- <div id="right-nav">
- <h1>Personal Info</h1>
- <hr />
- <br />
- <?php
- include
(
'includes/database.php'
)
;
- $result
=
mysql_query
(
"SELECT * FROM user where user_id='$id
' "
)
;
- while
(
$test
=
mysql_fetch_array
(
$result
)
)
- {
- $id
=
$test
[
'user_id'
]
;
- echo
" <div class='info-user'>"
;
- echo
" <div>"
;
- echo
" <label>Firstname</label> <b>"
.
$test
[
'firstname'
]
.
"</b>"
;
- echo
"</div> "
;
- echo
"<hr /> "
;
- echo
"<br /> "
;
- echo
" <div>"
;
- echo
" <label>Lastname</label> <b>"
.
$test
[
'lastname'
]
.
"</b>"
;
- echo
"</div> "
;
- echo
"<hr /> "
;
- echo
"<br /> "
;
- echo
" <div>"
;
- echo
" <label>Username</label> <b>"
.
$test
[
'username'
]
.
"</b>"
;
- echo
"</div> "
;
- echo
"<hr /> "
;
- echo
"<br /> "
;
- echo
" <div>"
;
- echo
" <label>Birthday</label> <b>"
.
$test
[
'birthday'
]
.
"</b>"
;
- echo
"</div> "
;
- echo
"<hr /> "
;
- echo
"<br /> "
;
- echo
" <div>"
;
- echo
" <label>Gender</label> <b>"
.
$test
[
'gender'
]
.
"</b>"
;
- echo
"</div> "
;
- echo
"<hr /> "
;
- echo
"<br /> "
;
- echo
" <div>"
;
- echo
" <label>Number</label> <b>"
.
$test
[
'number'
]
.
"</b>"
;
- echo
"</div> "
;
- echo
"<hr /> "
;
- echo
"<br /> "
;
- echo
"</div> "
;
- echo
"<br /> "
;
- echo
" <div class='edit-info'>"
;
- echo
" <a href ='edit_profile.php?user_id=$id
'><button>Edit Profile</button></a>"
;
- echo
"</div> "
;
- echo
"<br /> "
;
- echo
"<br /> "
;
- }
- ?>
- </div>
- </div>
And, that's it. This is the steps on how to create a simple Profile Information Page with Registration Page and Login Page see you in my next tutorial.
Share us your thoughts and comments below. Thank you so much for dropping by and reading this tutorial post. For more updates, don’t hesitate and feel free to visit this website more often and please share this with your friends or email me at [email protected]. Practice Coding. Thank you very much.
Download
You must upgrade your account or reply in the thread to view hidden text.