PHP <a href> error
<pre><code>echo "&lt;tr&gt;
    &lt;td&gt;&lt;b&gt;&lt;center&gt;"&lt;a href="usersProfile.php?firstname=" . $first . "&amp;lastname=" . $last . ""&gt;.$info['Name'].&lt;/a&gt;"&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;
 &lt;/tr&gt;";
</code></pre>

<p>The $info['Name'] fetches from a mysql DB.</p>

<p>Hmm it doesn't tell me the error but whats wrong here please can you try to figure it out?</p>

<p>UPDATE: ENTIRE CODE, please check if the error might be due to me putting the HTML inside PHP code?</p>

<pre><code>  &lt;style type="text/css"&gt;
  body,td,th {
color: #CCC;
  }
  &lt;/style&gt;
  &lt;center&gt;&lt;img src="http://puu.sh/12OmD" alt="TeK" width="1174" height="161"       align="top" /&gt;&lt;/center&gt;
  &lt;style type="text/css"&gt;
  body,td,th {
color: #000;
  }
  body {
background-color: #999;
  }
  &lt;/style&gt;
  &lt;?php

  // opens connection to mysql server
  $dbc = mysql_connect(, , 'm');

  if (!$dbc) {
die("Not connected(HOST PROBLEM): " . mysql_error());
}

  //select database
  $db_selected = mysql_select_db("damagedz_game", $dbc);
  if (!$db_selected){
die("Can't connect (DATABASE PROBLEM): " . mysql_error());  
}



  //Retrieving Data
  $data = mysql_query("SELECT * FROM game ORDER BY `kills` desc") 
or die("Can't connect (TABLE ERROR) : ".mysql_error());

  //$data2 = mysql_query("SELECT * FROM pProfile SET 'Name'") 
//or die("Can't connect (TABLE ERROR 2) : ".mysql_error());

  // puts the "friends" info into the $info array 
  // Print out the contents of the entry 


 echo "&lt;table width='1000' cellpadding='2' cellspacing='5' border='2' align='left'&gt;"; 

 echo "&lt;tr&gt;


    &lt;td&gt;&lt;center&gt;&lt;b&gt;RANK&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;&lt;td&gt;&lt;b&gt;&lt;center&gt;Nickname&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;&lt;td&gt;&lt;center&gt;&lt;b&gt;Kills&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;&lt;td&gt;&lt;center&gt;&lt;b&gt;     Deaths&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;&lt;td&gt;&lt;center&gt;&lt;b&gt;Ratio&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;&lt;/tr&gt;";
$i = 0;
 while($info = mysql_fetch_array( $data )) 
 { 
 $i++;
 echo "&lt;tr&gt; 
     &lt;td&gt;&lt;center&gt;&lt;b&gt;".$i."&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;"."&lt;td&gt;&lt;center&gt;&lt;b&gt;".$info['username']."&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;"."&lt;td&gt;&lt;center&gt;&lt;b&gt;".$info['kills']."&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;"."&lt;td&gt;&lt;center&gt;&lt;b&gt;".$info['deaths']."&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;"."&lt;td&gt;&lt;center&gt;&lt;b&gt;".$info['ratio']."&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;&lt;/tr&gt;"; 

 } 
 echo "&lt;/table&gt;";

$data2 = mysql_query("SELECT * FROM pProfile") 
or die("Can't connect (TABLE ERROR 2) : ".mysql_error());


 echo "&lt;table width='300' cellpadding='2' cellspacing='5' border='2' align='right'&gt;";

 echo "&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;center&gt;.Registered Users.&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;&lt;/tr&gt;";
  while($info = mysql_fetch_array( $data2 )) 
 { 
 $i++;

    echo "&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;center&gt;&lt;a href=\"usersProfile.php?firstname=" . $first . "&amp;lastname=" . $last . "\"&gt;.$info['Name'].&lt;/a&gt;&lt;/td&gt;&lt;/center&gt;&lt;/b&gt;&lt;/tr&gt;"; 

 }


 echo "&lt;/table&gt;";


  ?&gt;
</code></pre>
