Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $table1 = '<table id= "Table1" width='100%' border='1' cellspacing='0' cellpadding='0'>
- <tr class="tableheader">
- <th>Weeks</th>
- <th>' . '<p></p>' . '</th>
- <th> place</th>
- <th> More Details</th>
- </tr>
- <tr>';
- $button = $_POST[$wnumber];
- while($row3 = mysql_fetch_array($sql3)) :
- $rows[] = $row3;
- endwhile;
- $wnumber = "" ;
- foreach ($rows as $row3) : // loop #1 to output the main table
- $wnumber = $row3[$ww];
- <!--SW - No closing tr tag-->
- $table1 .= '<tr id="' . $row3['$ww'] . '">';
- $sql4 = mysql_query (" SELECT $ww as yourplace FROM data WHERE $ww = ".$wnumber." and id_user = ".$userid." and $ww != \"w_nothing\" ");
- $row4 = mysql_fetch_array($sql4) ;
- $string = "<blink style= 'color:#990000 ;font-weight: bolder;' ><< You are here </blink>" ;
- ?>
- $table1 .= '<tr id= "' . $row3[$ww] . '" class="intable">
- <td> "Week ". $wnumber . '</td>
- <td>' . (int) $row3['percent'] .'%' . '</td>
- <td>';
- if($row4['yourplace'] == $wnumber and $row2['id'] == $userid ) {
- $table1 .= $string ; } else { $table1 .= "";}
- $table1 .= '</td>
- <td>
- <form name ="dets" method="POST" action="">
- <input class = "showt" name ="' . $wnumber . '" id ="' . $wnumber . '" type="submit" value= "More Details" />
- <input type="hidden" name="data" value="' . $wnumber . '" />
- <input style="display:none;" type="text" name="' . $wnumber . '" value="' . $wnumber . '" />
- </form>
- </td>
- </tr>';
- endforeach;
- $table1 .= '</tr>
- </table>';
- print $table1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement