title: How to Insert Link to Mysql database using PHP
body: <p>I need help please, I'm having problem inserting a link into my <code>Mysql</code> Database using PHP like this:
  Example:  <a href="http://www.textlinkgravity.com/link.php?id=8781&amp;title=Deerpages.co-Free-Online-Business-Directory.html" rel="nofollow">http://www.textlinkgravity.com/link.php?id=8781&amp;title=Deerpages.co-Free-Online-Business-Directory.html</a></p>
  
  <p>In <code>Mysql</code> Database upon insert would be:
  <a href="http://www.textlinkgravity.com/link.php?id=8781" rel="nofollow">http://www.textlinkgravity.com/link.php?id=8781</a></p>
  
  <p>My problem is that the &amp; symbol is being cut. I'm using <code>mysql_real_escape_string</code>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$link = mysql_real_escape_string($_POST['link']);   
  //INSERT NEW ROW
  mysql_query("INSERT INTO table (link) VALUES ('$link') ");
  </code></pre>
  
  <p>My apology for my question cause I don't know how to insert it having complete strings as of this moment.</p>
  
  <p>Thanks to all.</p>