Ok, if I understand, you have a selection box in ticket-view.inc.php and its work.You have a SQL command too.Only what you need is send the value from selection box to your SQL command. Right?If so, it's easy:1. Make your sure, your code for selection box is between <form id="reply" class="tab_content spellcheck exclusive save"data-lock-object-id="ticket/<?php echo $ticket->getId(); ?>" and </form>. In this case are selected value send with to file \scp\tickets.php (see command action="tickets.php?id=...). Simply: it's only POST method. Give your selection box a name, for example like this:<select name="Diagnostico">.2. Now open the file \scp\tickets.php and search line with "case 'reply':" In my case line 82. Now comes the charm: read POST and add PHP Command INCLUDE after $vars = $_POST;. For example like this:$vars = $_POST;$Diagnostico = $_POST; //Read POST "Diagnostico"include '../my_scripts/set_diagnostic.inc.php';Of course, file set_diagnostic.inc.php contains your SQL.That's all.