Link to the page
<a href="http://xxxx.com/u/'.$_SESSION['loginid'].'/index.php?user='.$_SESSION['loginid'].'">test</a>
index.php
<?php
if (isset($_GET['user'])){
define("HOST", "xxxx.xxxxxxx.com");
define("DBUSER", "xxxxx");
define("PASS", "xxxx");
define("DB", "xxxx");
$conn = mysql_connect(HOST, DBUSER, PASS) or die('Could not connect !<br />Please contact the site\'s administrator.');
$db = mysql_select_db(DB) or die('Could not connect to database !<br />Please contact the site\'s administrator.');
$user = $_GET['user'];
$query = "('SELECT * FROM articles WHERE loginid='$user'')";
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result))
{
echo $row['title'];
}
}
else
die; "The post you are looking for is not here! It was deleted, moved or renamed by the author!";
?>
I get a blank page.
I have samples inside the database.