while ($userinfo = $DB_site->fetch_array($updatequery)) { sendprivatemessage ($userinfo, 'The following ticket has been updated: [URL]'.$vboptions[bburl].'/helpdesk.php?do=ticket&tid='.$_REQUEST['tid'] . '[/URL]', 'HelpDesk Ticket Update'); }