Jump to content

marklarsen85

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by marklarsen85

  1. hi i am trying to make a payroll calculator script that takes employee info, calculates pay, displays submitted info in a table, stores info in an array, and updates the array when new info is submitted. i have most of these accomplished, i am having trouble with the "store into an array, and update the array when new info is submitted" parts of the project. i am still not very fluent in php so there may be easier ways to achieve what i have so far. any pointers would be a great help, this part has got me stumped. [attachment deleted by admin]
  2. i understand what you have done there, but it's not quite what i was trying to do. i have attached a file showing the output i have so far. in row 1 i would like the second column to start at 11 and count to 20, and in the third column to start at 21 and count to 30. in row 2 i would like to count in the opposite direction 50 - 40 in the first column, 41 - 30 in the second, and 31 - 20 in the third. do i need to create a function to achieve this or am i going at it from a wrong direction? thanks mark [attachment deleted by admin]
  3. i have a new issue that i am stuck on. i have created the table and loops that i was needing. (with a little help from my friends) now i am trying to take the table and loops i have created and decrement my countdown starting at a new number in each column. echo "<tr>" ; for ($table=1 ; $table<=3 ; $table++) { // create a 3 cell 1 row table // echo "<td>" ; for ($countdown=50 ; $countdown>=40 ; $countdown--) { // loop for vertical 50 - 40 count // if (($countdown-10)%3) // test for countdown divided by 5 if there is a remainder echo countdown loop // echo "<br />" . $countdown . "<br />" ; else for ($countover=1 ; $countover<=10 ; $countover++) // loop for horizontal 1- 10 count // echo $countover ; } // when if test has no remainder echo countover loop // } echo "</tr></table>" ; this will display 3 columns with a 50 - 40 countdown in each column, but i would like it to display 50 - 40 in the first column, 40 - 30 in the second, and 30 - 20 in the last column. i believe i need to make a function to do this , but i haven't used functions very much yet. if you know any solutions please explain!! thanks mark
  4. Thank you so much! This is what I was wanting to do. My only other question would how could I get the output table to display on the same page as the form that the user used. I understand that I have it set up to interact with the second page, but that is the only way I know how to code it.
  5. I will start off by saying , I am a NooB. i understand concepts , but have trouble with figuring out the proper way to code thing out. I am trying to use an HTML form that the user can input two numbers, and use those numbers to create a table to be echoed back. echo "<form action='action.php' method='post' name='columns'> Enter number of columns and rows to be displayed:<br /> Columns:<input type='text' name='colnums' size=3 maxlength=6 />Rows :<input type='text' name='rownums' size=3 maxlength=6 /> <br /><input type='submit' value='submit' /></form>" ; This is my form. I have made a loop that will display but not in the fashion i would like it to. for ($createColumns=$_POST['colnums']; $createColumns<=10 ; $createColumns++) { echo "<td>" . $createColumns . "</td>" ; } I am looking to write a script that only needs the user input for the number of rows and columns to be displayed. I think I need a range function or possibly an array for the possible numbers that can be input, but I'm not sure. The loop I've made has a top limit and an increment that i don't think i need. If you have any ideas I would greatly appreciate it.
  6. hi all i am new to the programming, and trying hard to figure it all out. I'm 26 and I've been married for 7 years. I've been programming for a few months now, mainly learning, but soon hope to revamp a commerce website that i originally made in frontpage. I've already picked up a few tips and tricks from you guys, and im glad to be part of the FREAK nation.
×
×
  • 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.