Jump to content

[SOLVED] Displaying Data From Array


wsantos

Recommended Posts

on html...i got display from telnet...i need it as a table in the html. I assure you that the data in the arrays are correct and the display in my telnet shows the correct format for html.here's my display portion...

 

// Display
  foreach($GCodeList as $GCodeKey => $GCodeValue)
  {
    echo "      <TR>\n";
    echo "        <TD>" . $GCodeKey . "</TD>\n";
    foreach($GCodeValue as $value)
    {
      echo "        <TD>" . $value . "</TD>\n";
    }
    echo "      </TR>\n";
  }

 

here is the output on my telnet

 

<HTML>
  <BODY>
    <TABLE>
      <TR>
        <TD>G1181</TD>
        <TD>7</TD>
        <TD>0</TD>
        <TD>5</TD>
        <TD>2</TD>
      </TR>
      <TR>
        <TD>G3307</TD>
        <TD>1</TD>
        <TD>0</TD>
        <TD>1</TD>
        <TD>0</TD>
      </TR>
      <TR>
        <TD>GXXXX</TD>
        <TD>1</TD>
        <TD>0</TD>
        <TD>1</TD>
        <TD>0</TD>
      </TR>
    </TABLE>
  </BODY>
</HTML>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.