I have this code, it seams that it is everything right, but somehow it won't print the information I want in info.php
here is the code in the first page:
while ($row1 = mysql_fetch_array($result1)) {
echo '<a href="info.php?p="' . $row1['players'] . '">' . $row1['players'] . '</a>';
}
and the info.php files is like this:
$player = mysql_real_escape_string($_GET['p']);
$sql = 'SELECT * FROM equipa WHERE jogadores = \'' . $player . '\'';
$query = mysql_query($sql);
$details = mysql_fetch_array($query);
echo $details['age'];
Can anybody help me?
thanks