|
I dont know what you mean, normally I do it like this.
- the user fills in a form (username, name, password, ...)
- you put this in a database and you make a session:
INSERT INTO users (name, username, password, ...) VALUES ($username, $password, ...);
session_start();
$_SESSION['name'] = $_POST['username'];
- Then you can do your query like this:
$query = SELECT * FROM person WHERE name = $_SESSION['name'];
__________________
There Are Only 10 Types of People in the World: Those Who Understand Binary, and Those Who Don't.
|