function get_user_urls($username)
{
  //extract from the database all the URLs this user has stored
  if (!($conn = db_connect()))
    return false;
  $result = mysql_query( "select bm_URL
                          from bookmark
                          where username = '$username'");
  if (!$result)
    return false; 

  //create an array of the URLs 
  $url_array = array();
  for ($count = 1; $row = mysql_fetch_row ($result); ++$count) 
  {
    $url_array[$count] = addslashes($row[0]);
  }  
  return $url_array;
}