concatenating two variable into one
<p>I'm new here and kind pretty new to PHP and I'm no sure as to why this is not working.</p>

<p>If I <code>echo $ordernum1</code>, I get the value I look for, but echoing <code>echo ${"ordernum".$x};</code> gives me nothing.</p>

<p>I have also echoed <code>$attempts</code> and I get the value I'm looking for. Any help would be great thank you</p>

<pre><code>$update=$_POST['update']; //echo $update;
$attempts=$_POST['attempts'];//echo $attempts;

if($update==2){
    for($x=0; $x&lt;=$attempts; $x++){
        ${"ordernum".$x} = $POST["ordernum".$x.""]; echo ${"ordernum".$x};
        $query="UPDATE OrderTrack
        SET applicationID='--junk($appid)'
        WHERE OrderNum='".${"ordernum".$x}."'";
    }
}
</code></pre>
