Problem with " ' " (stripslashes)

I have a search script, where I have to add the links, url, description and keywords with the hand. But if I add something like “I’m” it turns into I\'m.

I found out that it’s because of stripslashes, and I tried everything since last monday, but I can’t get it.
I don’t know where to add it, and wich code!


  if(isSet($_POST['addLink']) && isSet($_GET['action']) && $_POST['addLink'] == 'Add Link!') {

    $title       = mysql_real_escape_string($_POST['title']);
    $link        = mysql_real_escape_string($_POST['link']);
    $keywords    = mysql_real_escape_string($_POST['keywords']);
    $description = mysql_real_escape_string($_POST['description']);
    $currentTime = time();

    if(!$title) {
      echo 'You must enter a title for the link.';  	
    } else if(!$link) {
      echo 'You must enter a url for the link.'; 
    } else if(!$keywords) {
      echo 'You must enter at least 1 keyword for the link.'; 
    } else if(!$description) {
      echo 'You must enter the description for the link.'; 
    } else {
      $addLink = mysql_query("INSERT INTO search_links (`title`,`link`,`keywords`,`description`,`time_created`) VALUES ('$title','$link','$keywords','$description',$currentTime)");

      if($addLink) {
        header('Location: searchEdit.php'); exit;
      } else {
        echo 'We were unable to add you link. Please try again.';



  if(isSet($_GET['action']) && $_GET['action'] == 'add') { ?>

  <a href="searchEdit.php"> Add/Delete Links? </a> - <a href="index.html"> Back to Search? </a> <br>

.title {width: 250px;}
.link {width: 250px;}
.keywords {width: 250px;}
.discription {width: 250px;}

.title input {width: 200px;}
.link input {width: 200px;}
.keywords input {width: 200px;}
.discription input {width: 200px;}

<form method="POST" action="searchEdit.php?action=add">
<table style="with: 1000px;">
<td class="title"><b>Title</b></td>
<td class="link"><b>Link</b></td>
<td class="keywords"><b>Keywords</b></td>
<td class="description"><b>Discription</b></td>

<td class="title"><input type="text" name="title" value="<?PHP if(isSet($title)) { echo $title; } ?>"></td>
<td class="link"><input type="text" name="link" value="<?PHP if(isSet($link)) { echo $link; } else { echo 'http://www.'; } ?>"> </td>
<td class="keywords"><input type="text" name="keywords" value="<?PHP if(isSet($keywords)) { echo $keywords; } ?>"> </td>
<td class="description"><input type="text" name="description" value="<?PHP if(isSet($description)) { echo $description; } ?>"> </td>
<td class="submitt"><input type="submit" name="addLink" value="Add Link!"></td>

<?PHP  } else if(isSet($_GET['action']) && isSet($_GET['id']) && $_GET['action'] == 'del') {

    $linkID = (int)$_GET['id'];

    $linkExists = mysql_num_rows(mysql_query("SELECT id FROM search_links WHERE id = $linkID LIMIT 1"));
    if($linkExists) {
      $deleteLink = mysql_query("DELETE FROM search_links WHERE id = $linkID LIMIT 1");
      header('Location: searchEdit.php');
    } else {
      echo 'You cannot delete a link that does not exist. <a href="searchEdit.php">Go Back?</a>';

  } else { 

    echo '<a href="searchEdit.php?action=add"> Add New Link </a> - <a href="index.html"> Back to Search? </a>';

    $getLinks = mysql_query("SELECT * FROM search_links");

    echo '<table cellpadding="0" cellspacing="0" border="0">';
    echo '<tr style="font-family:Verdana; font-size: 12px; font-weight:bold;">';
    echo '<td> Title </td>';
    echo '<td> Link </td>';
    echo '<td> Description </td>';
    echo '<td> Keywords </td>';
    echo '<td> </td>';
    echo '</tr>';
    echo '<tr><td colspan="" style="background:#000; height: 1px;"></td></tr>';

    while($link = mysql_fetch_assoc($getLinks)) {
      echo '<tr>';
      echo '<td style="width: 300px; padding: 3px 5px 3px 5px; font-family:Verdana; font-size: 10px;">',$link['title'],'</td>';
      echo '<td style="width: 400px; padding: 3px 5px 3px 5px; font-family:Verdana; font-size: 10px;">',$link['link'],'</em></td>';
      echo '<td style="width: 80px; padding: 3px 5px 3px 5px; font-family:Verdana; font-size: 10px;">',wordwrap($link['description'],50,'<br>'),'</td>';
      echo '<td style="width: 450px; padding: 3px 5px 3px 5px; font-family:Verdana; font-size: 10px;">',wordwrap($link['keywords'],50,'<br>'),'</td>';
      echo '<td style="padding: 3px 5px 3px 5px; font-family:Verdana; font-size: 10px;"><a style="color:red;" href="searchEdit.php?action=del&id=',$link['id'],'">Delete?</a></td>';
      echo '</tr>'; 
      echo '<tr><td colspan="5" style="background:#000; height: 1px;"></td></tr>';

  } ?>

I hope somebody can help me.

Yes your slashes are comming from the mysql_real_escape_string.

You need to use stripslashes() on the data that you take from the database to remove these escapes.