Link to the column in the Table database

When the user is roaring, it appears a profile, and when you need it to be pulled out, but for each user it is unprofitable for each user, the question is: how to output each user’s profile without creating a new page on FTP.


Answer 1, Authority 100%

Especially for you – an example …

Make a page Users.php, or there Profile.php, etc., there you write something like

if(isset($_GET['login']) && is_string($_GET['login'])) {
    $login = $_GET['login'];
    //      
    $login = mysql_real_escape_string($login);
    $query = 'SELECT * FROM users WHERE login="' . $login . '"';
    $dbResult = mysql_query($query);
    $userProfile = mysql_fetch_assoc($dbResult);
    if($userProfile) { //    ,    
         //   - 
         //     .
         //       email
         echo '<h1> '. $userProfile['name']  .'</h1>';
         echo '<h1>email '. $userProfile['email'] .'</h1>'; 
         exit();
    }
}
//       404
include_once ( $_SERVER['DOCUMENT_ROOT'] . '___404.html' );

That’s about something like that …
Well, now give in the URL of the URL of Users.php? Login = Prikol and, if there is such a user – Vices Our page …