I having a problem getting the $display to display between the <td> tags. This is what the html source looks like when the php code below is executed <table> php.com TAKEN<tr> <td></td> </tr> </table> IT SHOULD DISPLAY LIKE THIS <table> <tr> <td>php.com TAKEN</td> </tr> </table> What am I doing wrong? Please help. <?php function checkDomain($domain,$server,$findText){ // Open a socket connection to the whois server $con = fsockopen($server, 43); if (!$con) return false; // Send the requested doman name fputs($con, $domain."\r\n"); // Read and store the server response $response = ' :'; while(!feof($con)) { $response .= fgets($con,128); } // Close the connection fclose($con); // Check the response stream whether the domain is available if (strpos($response, $findText)){ return true; } else { return false; } } function showDomainResult($domain,$server,$findText){ if (checkDomain($domain,$server,$findText)){ echo $domain." AVAILABLE"; } echo $domain." TAKEN"; } ?> <table> <?php $display = '<tr> <td>'.showDomainResult("php.com",'whois.crsnic.net','No match for').'</td> </tr>'; echo $display; ?> </table> PHP: