Jump to content

cuzzmunger

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by cuzzmunger

  1. Thank You. Tested & working
  2. Hi Freaks, You guys helped me yesterday & now I have expanded on what I was doing & now need more help. From my limited knowledge I'm trying to add theses strings together. (I'm a printer) Its all adding up correctly until the end. *$row['markup'] is only multiplying the last string and not the complete echo...I have indicated the last string in blue. <?php echo ($row['laminating']*$row['qty'])+($row['Stock1']*$row['qty'])+($row['cutting']+$row['production']+$row['additional']+$row['pluscover']+$row['selfcover'])*$row['markup'];?> What I need to do is add up everything in red and * by my markup value (12%) <?php echo ($row['laminating']*$row['qty'])+($row['Stock1']*$row['qty'])+($row['cutting']+$row['production']+$row['additional']+$row['pluscover']+$row['selfcover'])*$row['markup'];?> any help would be appreciated! cuzzmunger
  3. Tested and working Thank you so much. I knew I would get help here! <?php echo ($row['Stock1']*$row['qty']+$row['cutting']+$row['production']+$row['additional']+$row['pluscover']+$row['selfcover'])*$row['markup'];?>
  4. Thanks for the reply, the maths below: 0.50*100+30+30+5+5+5*12%=140 is the same as Stock1*qty+cutting+production+additional+pluscover+selfcover*markup= total price the result i get is 125 so its not doing the last multiply (*$row['markup']) I just want to add it all up then *12% <?php echo $row['Stock1']*$row['qty']+$row['cutting']+$row['production']+$row['additional']+$row['pluscover']+$row['selfcover']*$row['markup'];?> I only tried the var like this instead of taking it from the database $markup_var = 1.12; then I added ...........$row['selfcover']*$markup_var cheers
  5. Hi freaks, Yes im a noob... I have some data in a db that im echoing out, but the last row wont multiply? The rest works great... I have tried having the data as the following: 1.12 or 0.12 & I have tried having it as a var. Do I need to have a % in there somewhere? Im adding up all the data then I want to multiply by 12% (*$row['markup']) <?php echo $row['Stock1']*$row['qty']+$row['cutting']+$row['production']+$row['additional']+$row['pluscover']+$row['selfcover']*$row['markup'];?> any help would be appreciated. cuzzmunger.
  6. think I found the answer.... http://www.ulsoft.scarbridge.co.uk/modules.php?name=Downloads&d_op=viewdownload&cid=1
  7. Hi, Im running a PHP Nuke site and it has a new user registration built into the site. I want to add some conditions so that they have to except when they register. can anyone what file I need to change? thanks.
  8. Hi, I changed hosts and have since had a problem in the forums with fonts (phbb) all I did was download the site and then upload the site to the new host. When I created the db I created it as utf8_unicode_ci (I am in australia / english) here is a grab of what iam getting ( i get different characters on different pc/os) any help would be appreciated cause its been bugging me for some time. thanks cuzzmunger
×
×
  • 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.