Jump to content


Problem with Setting Variables

  • Please log in to reply
1 reply to this topic

#1 adamjnz

  • Members
  • PipPipPip
  • Advanced Member
  • 30 posts

Posted 12 April 2006 - 05:24 AM

$product_qty = ("qty" .$row_products['productID'])

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.

#2 ToonMariner

  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 12 April 2006 - 06:59 AM

$product_qty = "qty" . $row_products['productID'];

follow me on twitter @PHPsycho

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users