adamjnz Posted April 12, 2006 Share Posted April 12, 2006 [code]$product_qty = ("qty" .$row_products['productID'])[/code]I am trying to set the variable $product_qty to "qty[productID]" where [productID] is the ID from the current row.E.G. If the ID of the current row was 1 then $product_qty = qty1I don't know how to code this and so am only guessing. I am getting the following error:[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Parse error: parse error, unexpected T_VARIABLE in .../public_html/testsite/profile/site/process_order.php on line 70 [/quote]Is someone please able to help me out with the correct code? This would be much appreciated. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 12, 2006 Share Posted April 12, 2006 [code]<?php$product_qty = "qty" . $row_products['productID'];?>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.