Jump to content

Archived

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

adamjnz

Problem with Setting Variables

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.

Share this post


Link to post
Share on other sites
[code]<?php
$product_qty = "qty" . $row_products['productID'];
?>[/code]

Share this post


Link to post
Share on other sites

×

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.