Jump to content

Problem with Setting Variables


adamjnz

Recommended Posts

[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 = qty1

I 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.