it doesn't display the other
it doesn't display the other the name etc..
Good day everyone, I am going to create my new tutorial called "Simple Profile Information Page". In this tutorial you can integrate my previous code on How to Create Registration Page in PHP/MySQL and on How to Create Login Page in PHP/MySQL.
To start with, follow the steps below.
Your Profile Information | ||
FirstName: |
||
LastName: |
||
Gender: |
||
Address: |
||
Contact No.: |
Hai i want new tutorial script php mysql
<?php require_once('auth.php');?>
Thnku sooo much for this code.....after getting this code. i solved my problem after 10 days.. soo again thnks
<?php $local_host = 'localhost'; //host doman.com $db_host = $local_host; $db_user = 'root'; // database username $user = $db_user; $db_pass = ''; //db password $pass = $db_pass; $db_name = 'member'; // $db = $db_name; // connect to mysql $sql = "SELECT * FROM user"; $username = $row['username']; $time = $row ['time']; //make a user link when you click in any user this link well open his profile echo '<div style="font-size:18px; color:blue; margin-top:-5px;" ><a href="profile.php?'.$_COOKIE['user'].'">'.$username.'</a></div>'; //$n = $_REQUEST[$time]; //setcookie('user','manassa'); } ?>
<?php if($_REQUEST['user'] == $_COOKIE['user'] || $_COOKIE['user'] == 'Admin'){ echo'<form action="settings.php"> <input id="button" type="submit" value="Settings V"/> <input id="button" type="submit" value="massege"/> </form>'; } elseif($_REQUEST['user'] == 'user'){ //header("location:profile.php"); } else { echo'<form action="follow.php"> <input id="button" type="submit" value="follow +"/> <input id="button" type="submit" value="massege"/> </form>'; } } ?> </div> </div> <?php //$man = $_GET[$username] echo $_REQUEST['user']."Profile"; //code here // class information ()/{ // this function To Get profile Information! $user = $_REQUEST['user']; $sql = "SELECT * FROM user WHERE username='$user'" ; { $username = $rows ['username']; /* $Email = $rows ['Email']; $pass = $rows ['time']; $quetion = $rows ['quetions']; $answer = $rows ['answer']; */ /*echo "<br/>".$username; echo "<br/>".$Email; echo "<br/>".$pass; echo "<br/>".$quetion; echo "<br/>".$answer; */ } } else { } ?>
Why i can't download it
Your Profile Information | ||
FirstName: |
||
LastName: |
||
Gender: |
||
Address: |
||
Contact No.: |
I'm new here in sourcecodester, i can't see the code for creating profile information