I'm new here and kind pretty new to PHP and I'm no sure as to why this is not working.
If I echo $ordernum1, I get the value I look for, but echoing echo ${"ordernum".$x}; gives me nothing.
I have also echoed $attempts and I get the value I'm looking for. Any help would be great thank you
$update=$_POST['update']; //echo $update;
$attempts=$_POST['attempts'];//echo $attempts;
if($update==2){
for($x=0; $x<=$attempts; $x++){
${"ordernum".$x} = $POST["ordernum".$x.""]; echo ${"ordernum".$x};
$query="UPDATE OrderTrack
SET applicationID='--junk($appid)'
WHERE OrderNum='".${"ordernum".$x}."'";
}
}