Note that there are some explanatory texts on larger screens.

plurals
  1. POError In Tables Display And Alternate Row Colouring Not Applying to Tables After The First Table
    primarykey
    data
    text
    <p>Please I need your help with the display of a page in my App. The student profile is gathering relevant data for the courses a student have taken over 10 semesters. The queries are working fine, but the display is not displaying as i want it to be. Also the JavaScript alternate row colouring is not applying to all the remaining tables after the first table. I'm looking to have something of this nature in the page display.</p> <pre><code> RAIN SEMESTERS Year1 Year2 Year3 Year4 Year5 HARMATTARN SEMESTERS Year1 Year2 Year3 Year4 Year5 . </code></pre> <p>This is an example of the PHP that is generating the tables, the remaining 9 tables are identical with varying Years ( 1-5 ) and Semesters: Rain/Harmattan</p> <pre><code> echo "&lt;div id=\"contentRight\"&gt;" ; echo "&lt;span class=\"header\"&gt;"; echo "&lt;p&gt;&lt;b&gt;Matric Number: $matric_ no&lt;/b&gt;&lt;/p&gt;"; echo "&lt;p&gt;&lt;b&gt;Year: 100 ; Semester: Hamattarn&lt;/b&gt;&lt;/p&gt;"; echo "&lt;table class=\"altrowstable\" id=\"alternatecolor\" bgcolor=gold &gt;\n"; echo "&lt;tr align=center&gt;\n"; for ($i=0; $i&lt;$number_cols1; $i++) { echo "&lt;th&gt;" . mysql_field_name($query1, $i). "&lt;/th&gt;\n"; } echo "&lt;/tr&gt;\n"; while ($row = mysql_fetch_row ($query1)) { echo "&lt;tr align=center&gt;\n"; for ($i=0; $i&lt;$number_cols1; $i++) { echo "&lt;td&gt;"; if (!isset($row[$i])) {echo "NULL";} else { echo "&lt;b&gt;".$row[$i]."&lt;/b&gt;"; } echo "&lt;/td&gt;\n"; } echo "&lt;/tr&gt;\n"; } echo "&lt;/table&gt;"; echo"&lt;/span&gt;" ; </code></pre> <p><strong>CSS</strong></p> <pre><code> table.altrowstable td { border-width: 2px; padding: 4px; border-style: solid; border-color: #a9c6c9; } .oddrowcolor{ background-color:#d4e3e5; } .evenrowcolor{ background-color:#c3dde0; } </code></pre> <p><strong>WHAT IS CURRENTLY DISPLAYED</strong></p> <p><img src="https://www.imgur.com/8KDTX.png" alt=""></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload