Here is the code that is working perfect: $username= $results[$i]['Name']; $url = $results[$i]['Website']; $add = "http://"; $check_url = substr($url,0,7); if($check_url=="http://") { $output = "<a href=\"{$url}\">$username</a> said:". "<BR>"; } else { $url = ($add.$url); } $output = "<a href=\"{$url}\">$username</a> said:". "<BR>"; Now it doesn't matter if user puts http:// or not
Thanks for this extra tip Now could you please guide me how I can add 'Edit Feature' to my Comment Script so that I can edit comments directly from browser.