Jump to content

Jayfromsandiego

New Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Jayfromsandiego

  • Rank
    Newbie
  1. Jayfromsandiego

    Adding Column Total

    index.html <!DOCTYPE html> <html> <head> <title>Html CRUD with Pure JavaScript</title> <link rel="stylesheet" href="styles.css"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> </head> <body><!-- SOURCE CODE: https://github.com/CodAffection/Pure-JavaScript-CRUD-Operations-with-Html --> <div align="left"><!-- CRUD stands for create, read, update and delete. These are the four basic functions of persistent storage. Also, each letter in the acronym can refer to all functions executed in relational database applications and mapped to a standard HTTP method, SQL statement or DDS operation. --> <span style="font-family: verdana,arial,helvetica; font-size: font-weight: bold; 15px; color: #FF0000;">Horse Racing</span> - <span style="font-family: verdana,arial,helvetica; font-size: font-weight: bold; 15px; color: #808080;">APP</span></div> <div>&nbsp;</div> <div style="overflow-x:auto;"> <table bgcolor="#F5F5F5"><!-- BEGIN (Table Input Form) --> <tr> <td> <form onsubmit="event.preventDefault();onFormSubmit();" autocomplete="off"> <div> <label>Date*</label><label class="validation-error hide" id="colDateValidationError">This field is required.</label> <input type="text" name="colDate" id="colDate"> </div> <div> <label>Play List</label> <input type="text" name="colPlaylist" id="colPlaylist"> </div> <div> <label>Winning Numbers</label> <input type="text" name="colWinningnumbers" id="colWinningnumbers"> </div> <div> <label>Won or Lost</label> <input type="text" name="colWonlost" id="colWonlost"> </div> <div> <label>Amount Won</label> <input type="text" name="colAmountwon" id="colAmountwon"> </div> <div> <label>Investment Wager</label> <input type="text" name="colWager" id="colWager"> </div> <div> <label>Profit / Loss</label> <input type="text" name="colProfitloss" id="colProfitloss"> </div> <div class="form-action-buttons"> <input type="submit" value="Submit"> </div> </form> </td> <td> <table class="list" id="numberList"><!-- BEGIN (Table to list all records) --> <thead> <tr> <th>Date</th> <th>Play List</th> <th>Winning Numbers</th> <th>Won or Lost</th> <th>Amount Won</th> <th>Investment Wager</th> <th>Profit / Loss</th> <th></th> </tr> </thead> <tbody> </tbody><!-- START Column (Profit / Loss - Bottom Row "Total Box") --> <tr> <td bgcolor="#FF0000"><span style="font-family: verdana,arial,helvetica; font-size: 12px; color: #FFFFFF;">TOTAL:</span></td> <td colspan="5">&nbsp;</td> <td bgcolor="#FFFF99">&nbsp;$0</td> <td>&nbsp;</td> </tr> </table> </td> </tr> </table> <script src="script.js"></script> </body> </html> script.js var selectedRow = null function onFormSubmit() { if (validate()) { var formData = readFormData(); if (selectedRow == null) insertNewRecord(formData); else updateRecord(formData); resetForm(); } } function readFormData() { var formData = {}; formData["colDate"] = document.getElementById("colDate").value; formData["colPlaylist"] = document.getElementById("colPlaylist").value; formData["colWinningnumbers"] = document.getElementById("colWinningnumbers").value; formData["colWonlost"] = document.getElementById("colWonlost").value; formData["colAmountwon"] = document.getElementById("colAmountwon").value; formData["colWager"] = document.getElementById("colWager").value; formData["colProfitloss"] = document.getElementById("colProfitloss").value; return formData; } function insertNewRecord(data) { var table = document.getElementById("numberList").getElementsByTagName('tbody')[0]; var newRow = table.insertRow(table.length); cell1 = newRow.insertCell(0); cell1.innerHTML = data.colDate; cell2 = newRow.insertCell(1); cell2.innerHTML = data.colPlaylist; cell3 = newRow.insertCell(2); cell3.innerHTML = data.colWinningnumbers; cell4 = newRow.insertCell(3); cell4.innerHTML = data.colWonlost; cell5 = newRow.insertCell(4); cell5.innerHTML = data.colAmountwon; cell6 = newRow.insertCell(5); cell6.innerHTML = data.colWager; cell7 = newRow.insertCell(6); cell7.innerHTML = data.colProfitloss; cell7 = newRow.insertCell(7); cell7.innerHTML = `<a onClick="onEdit(this)">Edit</a> <a onClick="onDelete(this)">Delete</a>`; } function resetForm() { document.getElementById("colDate").value = ""; document.getElementById("colPlaylist").value = ""; document.getElementById("colWinningnumbers").value = ""; document.getElementById("colWonlost").value = ""; document.getElementById("colAmountwon").value = ""; document.getElementById("colWager").value = ""; document.getElementById("colProfitloss").value = ""; selectedRow = null; } function onEdit(td) { selectedRow = td.parentElement.parentElement; document.getElementById("colDate").value = selectedRow.cells[0].innerHTML; document.getElementById("colPlaylist").value = selectedRow.cells[1].innerHTML; document.getElementById("colWinningnumbers").value = selectedRow.cells[2].innerHTML; document.getElementById("colWonlost").value = selectedRow.cells[3].innerHTML; document.getElementById("colAmountwon").value = selectedRow.cells[4].innerHTML; document.getElementById("colWager").value = selectedRow.cells[5].innerHTML; document.getElementById("colProfitloss").value = selectedRow.cells[6].innerHTML; } function updateRecord(formData) { selectedRow.cells[0].innerHTML = formData.colDate; selectedRow.cells[1].innerHTML = formData.colPlaylist; selectedRow.cells[2].innerHTML = formData.colWinningnumbers; selectedRow.cells[3].innerHTML = formData.colWonlost; selectedRow.cells[4].innerHTML = formData.colAmountwon; selectedRow.cells[5].innerHTML = formData.colWager; selectedRow.cells[6].innerHTML = formData.colProfitloss; } function onDelete(td) { if (confirm('Are you sure to delete this record ?')) { row = td.parentElement.parentElement; document.getElementById("numberList").deleteRow(row.rowIndex); resetForm(); } } function validate() { isValid = true; if (document.getElementById("colDate").value == "") { isValid = false; document.getElementById("colDateValidationError").classList.remove("hide"); } else { isValid = true; if (!document.getElementById("colDateValidationError").classList.contains("hide")) document.getElementById("colDateValidationError").classList.add("hide"); } return isValid; } styles.css body > table{ width: 80%; } table{ border-collapse: collapse; } table.list{ width:100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } tr:nth-child(even),table.list thead>tr { background-color: #dddddd; } input[type=text], input[type=number] { width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block; border: 1px solid #CCC; border-radius: 4px; box-sizing: border-box; } input[type=submit]{ width: 30%; background-color: #FF0000; color: #FFF; padding: 14px 20px; margin: 8px 0; border: none; border-radius: 4px; cursor: pointer; } form div.form-action-buttons{ text-align: right; } a{ cursor: pointer; text-decoration: underline; color: #0000ee; margin-right: 4px; } label.validation-error{ color: red; margin-left: 5px; } .hide{ display:none; }
  2. Jayfromsandiego

    Adding Column Total

    I recently came across this youtube video below on CRUD W/Javascript .. I modified the code into a horse racing app and want to know how to implement a feature that calculates the Profit / Loss column total. The Profit / Loss across column total would be calculated from row columns (Amount Won minus Investment Wager). Then the running total would be calculated vertically by adding all the rows in that Profit / Loss column until you hit the bottom yellow highlighted text box. Please see the attached image, shown as yellow highlighted text box with the total showing as $0 balance, which should be $4. Obviously this amount is incorrect and this is the problem I have been trying to correct for 2 weeks or so now. Been applying many different approaches, but I can't seem to figure it out and its driving me nuts. Its one thing to be able to add all the sums but trying to come up with a way to incur the negative loss values is proving difficult to me. Can someone please help?
  3. Jayfromsandiego

    5K - Race

    Hello everyone. I’m trying to hone my skills with arrays and forms. I previously coded a 2-page form with a single input and I thought I would give a 1-page form with multiple inputs a shot in PHP. I use to run cross-country, so I came up with the following .. FICTIONAL SCENARIO: I have high school runners competing in a 5K race. Every year 300 or less participants attend; the cut-off is 300 runners. There are three types of runners competing which are broken up according to their division. 1) Frosh / Soph , 2) Jr. Varsity and 3) Varsity Before the race, each runner is assigned a 3-digit number sticker to their jersey, so the judges can keep track of the runners. Medals are usually awarded to the top 14 runners to finish the course. Lets pretend on the day of the race, there were 86 participants in the Frosh / Soph level, 62 participants in the Jr. Varsity level and 42 participants in the Varsity level division. I have question marks below that act as placeholders for each of the 3 group’s runners numbers (See 1st: before_race.jpg ). These variable numbers would be predetermined before the race event and data entered into their respective column by the head coach. What I am trying to code is what group the “Top 14 Finishers” belong to after the race takes place. The User Interface would have to be visible to the announcer(s). I’m thinking a one page form with 14 inputs (???, etc.) for the 14 unique runners. Then, compare each of the 14 finishers against the 3 array database. For example, lets say the Top 14 runners came in this order .. “001”, “238”, “358”, “267”, “159”, “013”, “099”, “135”, “469”, “477”, “288”, “016”, “689”, “177”. The announcer(s) also have a back-up hard copy list in numerical order with them which they can visually scan at a glance to locate the number assigned to each runner. So if for instance, Mike Reynolds was assigned the number 238, the announcer would look up the number 238 into the UI at the conclusion of the race and know instantly that Mike Reynolds is a Jr. Varsity level runner. (See 2nd: after_race.jpg) Moreover, the race officials could quickly see there were 5 Frosh / Soph runners, 4 Jr. Varsity runners and 5 Varsity runners in the Top 14 finishers. In conclusion, each column would be tallied up with a cumulative total output to verify the 14 runners total. Again, (See 2nd: after_race.jpg ) I’m not sure what would be the best way to efficiently code this. How should I code this? Any suggestions? Please review the 2 attached images. ============ PHP Code: <?php if(isset($_POST['Submit'])){ $runnerone = $_POST[“runner1"]; // Start variables for Top 14 Finishers $runnertwo = $_POST["runner2"]; $runnerthree = $_POST["runner3"]; $runnerfour = $_POST["runner4"]; $runnerfive = $_POST["runner5"]; $runnersix = $_POST["runner6"]; $runnerseven = $_POST["runner7"]; $runnereight = $_POST["runner8"]; $runnernine = $_POST["runner9"]; $runnerten = $_POST["runner10"]; $runnereleven = $_POST["runner11"]; $runnertwelve = $_POST["runner12"]; $runnerthirteen = $_POST["runner13"]; $runnerfourteen = $_POST["runner14"]; // End variables tracking // Begin - High School (3 Division Database) $arrayFrosh = “013, ???, 358, ???, 099, ???, 469, ???, 689, ???, etc..”; // This entry list can be variable, but I intentionally placed #s to illustrate a possible race outcome $arrayJr = “???, 016, ???, ???, 238, ???, 267, 288, ???, etc..”; // This entry list can be variable .. $arrayVarsity = “001, ???, ???, 135, ???, ???, 159, ???, 177, ??, 477, etc..”; // This entry list can be variable .. } ?> <html> <head> <title>5K :: Championship Race</title> <body bgcolor=“#FFFFFF”> <div> <form action="#" method="post"> 1: &nbsp;<input type="text" name=“runner1" autofocus=""><br> 2: &nbsp;<input type="text" name="runner2"><br> 3: &nbsp;<input type="text" name="runner3"><br> 4: &nbsp;<input type="text" name="runner4"><br> 5: &nbsp;<input type="text" name="runner5”><br> 6: &nbsp;<input type="text" name="runner6"><br> 7: &nbsp;<input type="text" name="runner7"><br> 8: &nbsp;<input type="text" name="runner8"><br> 9: &nbsp;<input type="text" name="runner9"><br> 10: <input type="text" name="runner10"><br> 11: <input type="text" name="runner11"><br> 12: <input type="text" name="runner12"><br> 13: <input type="text" name="runner13"><br> 14: <input type="text" name="runner14"><br><br> <input type="submit" name="Submit"> </form> </div> </body> </head> </html>
  4. Jayfromsandiego

    Table form input to output to 2nd page table

    Alright!! I solved it. What a great way to start the new year in 2019. 😀 The problem was in the echo command and was changed from <?php echo $group_a; ?> to <?php echo join(',',$group_a); ?> Here's the final working code in case anyone else ever needs something similar in the future (just need an "if else" implemented when no matches are found). --------------------- PAGE 1 table.php <?php session_start(); $_SESSION['regName'] = $input; ?> <html> <head> <title>ACME WIDGETS :: Type of Marbles Sold Match</title> </head> <body> <div>&nbsp;</div> <div>&nbsp;</div> <div align="center"><!-- START :: Data Table --> <table border="1" cellspacing=0 cellpadding=5 bgcolor="#FFFFFF" bordercolor="#000000"> <th colspan="2" bgcolor="#000000"><span style="font-family: verdana,arial,helvetica; font-size: 15px; font-weight: bold; color: #FFFFFF;">Find Matching Results ..</span></th> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP A:</span></td> <td>&nbsp;</td> </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP B:</span></td> <td>&nbsp;</td> </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP C</span></td> <td>&nbsp;</td </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP D </span></td> <td>&nbsp;</td </tr> <tr> <td bgcolor="#FF0000"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FFFFFF;">5#s Input:</span></td> <td>&nbsp;</td </tr> </table><!-- END :: Data Table --> </div> <div>&nbsp;</div> <div align="center"><!-- START :: Form --> <span style='font-weight: bold; color: #FF0000;'>Type in 5 Numbers:</span><br> <form method="get" action="table_results.php"> <input type="text" name="regName" value="" autofocus=""><br><br> <input type="Submit"> </form> </div><!-- END :: Form --> </body> </html> --------------------- PAGE 2 table_results.php <?php $input = $_REQUEST['regName']; $array_A = [2, 6, 8, 11, 14, 18, 24]; $array_B = [1, 2, 9, 10, 13, 14, 25, 28]; $array_C = [1, 3, 7, 9, 13, 15, 20, 21, 24]; $array_D = [4, 5, 12, 22, 23, 27, 28, 29]; $parts = explode(",", $input); foreach ($parts as $part) { if (in_array($part, $array_A)) { $group_a[] = $part; } if (in_array($part, $array_B)) { $group_b[] = $part; } if (in_array($part, $array_C)) { $group_c[] = $part; } if (in_array($part, $array_D)) { $group_d[] = $part; } } ?> <html> <head> <title>ACME WIDGETS :: Type of Marbles Sold Match</title> </head> <body> <div>&nbsp;</div> <div>&nbsp;</div> <div align="center"> <table border="1" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF" bordercolor="#000000"> <th colspan="2" bgcolor="#000000"><span style="font-family: verdana,arial,helvetica; font-size: 15px; font-weight: bold; color: #FFFFFF;">Matches Found Results ..</span></th> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP A:</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FF0000;"><?php echo join(',',$group_a); ?></span></td> </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP B:</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FF0000;"><?php echo join(',',$group_b); ?></span></td> </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP C</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FF0000;"><?php echo join(',',$group_c); ?></span></td </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP D</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FF8C00;"><?php echo join(',',$group_d); ?></span></td </tr> <tr> <td bgcolor="#FF0000"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FFFFFF;">5#s Input:</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #00CC00;"><?php echo $input; ?></span></td </tr> </table> </div> <div>&nbsp;</div> </body> </html>
  5. Jayfromsandiego

    Table form input to output to 2nd page table

    Okay. I tried this code and its only echoing "Array" for Group A, Group B, Group C and Group D. Wonder why its not working? 🤔 table_results.php <?php $input = $_REQUEST['regName']; $array_A = [2, 6, 8, 11, 14, 18, 24]; $array_B = [1, 2, 9, 10, 13, 14, 25, 28]; $array_C = [1, 3, 7, 9, 13, 15, 20, 21, 24]; $array_D = [4, 5, 12, 22, 23, 27, 28, 29]; $parts = explode(",", $input); foreach ($parts as $part) { if (in_array($part, $array_A)) { $group_a[] = $part; } if (in_array($part, $array_B)) { $group_b[] = $part; } if (in_array($part, $array_C)) { $group_c[] = $part; } if (in_array($part, $array_D)) { $group_d[] = $part; } } ?> <html> <head> <title>ACME WIDGETS :: Type of Marbles Sold Match</title> </head> <body> <div>&nbsp;</div> <div>&nbsp;</div> <div align="center"> <table border="1" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF" bordercolor="#000000"> <th colspan="2" bgcolor="#000000"><span style="font-family: verdana,arial,helvetica; font-size: 15px; font-weight: bold; color: #FFFFFF;">Matches Found Results ..</span></th> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP A:</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FF0000;"><?php echo $group_a; ?></span></td> </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP B:</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FF0000;"><?php echo $group_b; ?></span></td> </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP C:</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FF0000;"><?php echo $group_c; ?></span></td </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP D:</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FF8C00;"><?php echo $group_d; ?></span></td </tr> <tr> <td bgcolor="#FF0000"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FFFFFF;">5#s Input:</span></td> <td><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #00CC00;"><?php echo $input; ?></span></td </tr> </table> </div> <div>&nbsp;</div> </body> </html>
  6. Jayfromsandiego

    Table form input to output to 2nd page table

    This is what I have coded so far for .. table.php <?php session_start(); $_SESSION['regName'] = $regValue; ?> <html> <head> <title>ACME WIDGETS :: Type of Marbles Sold Match</title> </head> <body> <div>&nbsp;</div> <div>&nbsp;</div> <div align="center"><!-- START :: Data Table --> <table border="1" cellspacing=0 cellpadding=5 bgcolor="#FFFFFF" bordercolor="#000000"> <th colspan="2" bgcolor="#000000"><span style="font-family: verdana,arial,helvetica; font-size: 15px; font-weight: bold; color: #FFFFFF;">Matches Found Results ..</span></th> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP A:</span></td> <td>&nbsp;</td> </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP B:</span></td> <td>&nbsp;</td> </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP C:</span></td> <td>&nbsp;</td </tr> <tr> <td bgcolor="#DCDCDC"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #000000;">GROUP D:</span></td> <td>&nbsp;</td </tr> <tr> <td bgcolor="#FF0000"><span style="font-family: verdana,arial,helvetica; font-size: 12px; font-weight: bold; color: #FFFFFF;">5#s Input:</span></td> <td>&nbsp;</td </tr> </table><!-- END :: Data Table --> </div> <div>&nbsp;</div> <div align="center"><!-- START :: Form --> <span style='font-weight: bold; color: #FF0000;'>Type in 5 Numbers:</span><br> <form method="get" action="table_results.php"> <input type="text" name="regName" value="" autofocus=""><br><br> <input type="Submit"> </form> </div><!-- END :: Form --> </body> </html>
  7. Jayfromsandiego

    Table form input to output to 2nd page table

    Hi there benanamen. Thank you for reading my post. Let's just say I sell marbles in 4 different categories (GROUP A - RED, GROUP B - BLUE, GROUP C-YELLOW and GROUP D-GREEN) and the 5-Numbers input corresponds to each day of a work week (Monday, Tuesday, Wednesday, Thursday and Friday). I want to keep track of how many marbles are being sold per day from each group category. The numbers between the 4 arrays correspond to sub-categories within each array.
  8. Jayfromsandiego

    New Here

    Happy New Year's. I am new to this website. I use to code html and javascript as a hobby many years ago and I have recently got back into this coding world. I have seen many languages emerge and really like PHP since its the easiest for me to pick up from where I'm at now. I have learned some of the basics from online tutorials and youtube videos. I plan on coding my own PHP Apps and hopefully make some quick progress with the help of others who will catch my mistakes and offer some positive advice. Best regards, Jay
  9. Hello everyone. I need help with the following PHP APP. I am running on (Version PHP 7.2.10) I am trying to have a page table form on table.php pass the input variable of “5-Numbers” to another page called table_results.php I want that variable string of “5-Numbers” to be compared against 4 arrays and output any duplicates found within each of those 4 lists. If nothing is found, I still want some visual output that reads “None found”. Lets pretend I have the following example .. On table.php, I typed inside my table form the 5-Numbers .. INPUT: 2,15,37,13,28 On table_results.php, the 4 arrays to be compared against my input numbers “ 2,15,37,13,28” are .. $array_A = array(2,6,8,11,14,18,24); $array_B = array(1,2,9,10,13,14,25,28,); $array_C = array(1,3,7,9,13,15,20,21,24); $array_D = array(4,5,12,22,23,27,28,29); So my output should read as follows below .. OUTPUT: TABLE COLUMN 1 COLUMN 2 ROW 1 Matches Found Results .. ROW 2 GROUP A: 2 ROW 3 GROUP B: 2,13,28 ROW 4 GROUP 😄 13,15 ROW 5 GROUP 😧 28 ROW 6 5#s Input: 2,15,37,13,28 Please let me know if anyone has any suggestions on how to go about it. Thanks.
×

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.