Use a variable from a php function in another php function
<p>I am using two php functions:</p>

<pre><code>jQuery(document).ready(function(){ 
$('#nombre').autocomplete({source:'search_Pacient.php', minLength:1});
$('#concepto').autocomplete({source:'search_Study.php', minLength:1});
        });
</code></pre>

<p>Now, in my search_Pacient.php I have a query that returns multiple values from an mysql db..
I need to obtain a value from that query, and use it in another query from my search_Study.php ..
Hope someone could help me!</p>
