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. Link to comment https://forums.phpfreaks.com/topic/7167-problem-with-setting-variables/ 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] Link to comment https://forums.phpfreaks.com/topic/7167-problem-with-setting-variables/#findComment-26100 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.