Jump to content

id123

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

id123's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi thanks for the reply, the sesion variables are working fine. its the $qty$i line that is causing me problem. i need to be able to retrie the form field qty+counter of the loop ($i)
  2. Hi, i have a shopping basket that uses a for loop to show contents of the basket. There is then a qty field for each item with the name of the field being qty and the value of $i in the for loop. I need to be able to refer to this field on the next page using the same loop to show the final values. The problem i have is being able to reference qty1 for example. How can i get the form field of name qty$i? Here is an example of code from the second page [code]<? for ($i=1 ; $i <= $_SESSION["item_count"]; $i++) { $item_cost = $_SESSION["item_cost[$i]"]; ?> <tr> <td><?php echo $_SESSION["items_tray[$i]"]; ?></td> <td align=center><?php echo $_SESSION["quantity[$i]"]; ?></td> <td align=center>£<?php echo number_format("$item_cost","2",".",","); ?></td> <td align=center>£<? echo (number_format(($item_cost * $qty$i),"2")); ?></td> </tr> <? } ?>[/code] obviously this doesnt work, can someone help me as im really stuck!
  3. hi, is there a function in mysql where the search string is used to find anything containing it. eg if you searched \"american\" then on a film datbase you would get american pie1, american pie2, american wedding, american werewolf in london etc etc so far i have tried select * from dvd where title = $title hope that makes sense coz it kind of dont 2 me!!!!! thanks
×
×
  • 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.