Answer the question
In order to leave comments, you need to log in
Why is it not reading the GET parameter?
The site currently has several sections. The user gets into profile.php?id=123 after successful authorization (per session). Using the profile.php?id=123 link, the user can view the profile of any other users (we get the data using a database query, sorted by $id.) For example, by writing ?id=1234 in the address bar. It reads like this:
include 'database.php';
if (isset($_GET['id'])) {
$id = $_GET['id'];
$url = "profile.php?id=$id";
parse_url($url);
}
include 'database.php';
if (isset($_GET['id'])) {
$id = $_GET['id'];
$url = "friends.php?friends=$id";
parse_url($url);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question