Advertisement
Advertisement
| 10.07.2008 at 11:31AM PDT, ID: 23794787 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
======================================== THIS WORKS:
for ($i=0; $i < $numrows; $i++) {
$rows=mysql_fetch_array($result); // get a row from our result set
// while ($rows = mysql_fetch_array($result)) { // Commenting out the above 2 lines and uncommenting this one results in the same thing, other than alternating colors.
if($i % 2) { // if there is a remainder
?>
<tr class="altdelRow_0">
<?php
}
else { // if there is not a remainder we will do the else ?>
<tr class="altdelRow_1">
<?php
}?>
<td id="viewtasksidall"><?php echo $rows['id_ctk']; ?></td>
<td id="viewtasksnameall"><?php echo stripslashes($rows['name_ctk']); ?></td>
<td id="viewtasksprojectall"><?php echo stripslashes($rows['name_pro']); ?></td>
<td id="viewtasksdescriptionall"><?php echo $rows['description_ctk']; ?></td>
</tr>
<?php } ?>
============================================ code for the WHILE (not working with the alternating row color code):
if (isset($_POST['projectid'])) {
$grab_projectid = $_POST[projectid];
$sql_view_tasks = "SELECT * FROM `$tbl_tasks`, `$tbl_projects` where fk_id_pro_ctk = id_pro AND id_pro = '$grab_projectid'";
$result_view_tasks = mysql_query($sql_view_tasks);
?>
<div id="div_wrapper_tablesort">
<table id="table_sort" class="sortable">
<thead><tr><td><b>ID</b></td><td><b>Task Name</b></td><td><b>Project</b></td><td><b>Description</b></td><td id="theaderedit"><b></b></td></tr></thead>
<tbody>
<?php while($rows_view_tasks=mysql_fetch_array($result_view_tasks)){ ?>
<tr>
<td id="viewtasksid"><?php echo $rows_view_tasks['id_ctk']; ?></td>
<td id="viewtasksname">
<a href="<?php echo $query_string_page; ?>" target="_blank"><?php echo stripslashes($rows_view_tasks['name_ctk']); ?></a></td>
<td id="viewtasksproject"><?php echo $rows_view_tasks['name_pro']; ?></td>
<td id="viewtasksdescription"><?php echo $rows_view_tasks['description_ctk']; ?></td>
<td id="viewtasksradio">
<form name="formedit" method="post" action="edit_task.php">
<input type="checkbox" name="radioedittask" value="<?php echo $rows_view_tasks['id_ctk']; ?>">
<input type="hidden" name="hiddendescription" value="<?php echo htmlspecialchars($rows_view_tasks['description_ctk']); ?>">
</td>
</tr> <?php } ?>
<input id="edittaskbutton" type="submit" name="Submit" value="Edit">
</form>
</tbody>
<tfoot></tfoot>
</table>
</div>
<?php } else { } ?>
|