Jump to content

ruddernz

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ruddernz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi there, im a bit stuck with a date problem. I have a form where the user types in a date and need to find records from the last friday of the previous month to the date typed in. Can get the 1st day of the previous month but have been trying to get the last friday of that month but bit stuck :s thx
  2. Hi there, I have a form in php where the user puts in a dienumber, number of peices,and the length of each cut. I need then to look up the weight of the die in a db then multiple that by the number of peices multiple the length, then output the answer in the kgs field, is this possible? Figured i would need the onChange and thus js. But my php is better than my js :S So far have this, think im nearly there(maybe?) Thanks echo '<script language="javascript">'; echo 'function Getweight(){'; echo 'peices = document.inputs.pieces.value;'; echo 'cutlength = document.inputs.cutlength.value;'; //need to look up weight of die //need to output back to doc.inputs.kgs echo '}'; echo '</script>'; echo '<FORM action="../update/updateOrdering.php" method="get" name="inputs">'; echo '<TD class="value"><INPUT type="text" name="dienumber" value="" maxlength="10" size="20"></TD>'; echo '<TD class="value"><INPUT type="text" name="pieces" value="2" maxlength="10" size="20"></TD>'; echo '<TD class="value"><INPUT type="text" name="cutlength" value="1" maxlength="10" size="20" onChange="Getweight()"></TD>'; echo '<TD class="value"><INPUT type="text" name="kgs" value="" maxlength="10" size="20"></TD>'; ..... select dieweight from die_tab where dienumb = 1234
×
×
  • 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.