QUOTES.PHP Delete this line - $theLink = $element[2]; Remove "$theLink" from the function - $output = outputLine($theQuote, $theRef, $theLink); so that it looks like this: $output = outputLine($theQuote, $theRef); FUNC.PHP Remove "$theLink" from the function so that it looks like: function outputLine($theQuote, $theRef) Remove " - ..." so that it looks like: - For example: