Splitting data from URL?
<p>Say my url is <code>site.php?id=X-34837439843</code></p>

<p>How do i split it so I return</p>

<pre><code>$table = "X";
$id = "X-34837439843";
</code></pre>

<p>Basically I'm using the same page to select from different tables, and the letter at the beginning of the ID represents which table, so I need to split the left side of the <code>"-"</code>.</p>
