query("SELECT * FROM contact_us WHERE id=$id")->fetch_assoc(); if (!$row) exit('פנייה לא קיימת'); function make_links_clickable($text) { $safe = htmlspecialchars($text); // Also linkify www. (not just http(s)) $safe = preg_replace_callback('~(https?://[^\s]+)~', function($m) { $url = $m[1]; return ''. $url .''; }, $safe); $safe = preg_replace_callback('/\b(www\.[a-z0-9\.-]+\.[a-z]{2,6}\S*)/i', function($m) { $url = $m[1]; return ''. $url .''; }, $safe); return nl2br($safe); } ?>