I want to drop a portion of my url (php variable in the $_GET) when linking to another page
<p>When i click on my table results from an individual sql query.</p>

<pre><code>$zip = mysql_real_escape_string($_GET['zip1']);

$near = "select id, first, last, trainer_address1, CITY, STATE, trainer_zip "
    "from event.ACS.trainer where trainer zip ='{$zip}'";
echo lookup_gen::query_results_table($near, matry::base_to('acs/trainer/edit&amp;trainer_id'));
</code></pre>

<p><code>query_results_table</code> just builds the table and rows and allows individual linking for whatever result/row is clicked on.</p>

<p><code>matry::base_to</code> just Links from the base path.
    return A link from the base path to the specified path.</p>

<p>the current page i'm on is:</p>

<pre><code>index.php?q=event/form&amp;id=19471
</code></pre>

<p>it has this id variable in the $_GET as shown above.</p>

<p>When i click through on my query_results_table i've set up matry::base_to to link me to </p>

<pre><code>index.php?q=acs/trainer/edit&amp;trainer_id&amp;id=19471
</code></pre>

<p>How can i drop the <code>&amp;id=19471</code> in the end of that url.</p>

<p>Should i use unset or is there a more concise way of going about it, if any at all?</p>

<p>Additionally, if anyone would like me to post the query_results_table function or the matry::base_to function, i'd be more than happy too. Hope I can get this resolved. Thank you.</p>
