Advertisement
Advertisement
| 09.28.2008 at 08:52PM PDT, ID: 23770376 |
|
[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: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: |
=================================================== showtasks_select.php
<head>
<link rel="stylesheet" media="all" type="text/css" href="tasks.css" />
<?php
include ("connectiondb.php");
$tbl_tasks="currenttasks_ctk";
$tbl_projects="projects_pro";
$sql="SELECT * FROM `$tbl_tasks`, `$tbl_projects` where fk_id_pro_ctk = id_pro";
// $sql="SELECT * FROM `$tbl_tasks`, `$tbl_projects` where name_pro = {$_GET['projectid']}";
$sql2="SELECT DISTINCT name_pro FROM `$tbl_tasks`, `$tbl_projects` where fk_id_pro_ctk = id_pro";
$result=mysql_query($sql);
$result2=mysql_query($sql2);
// $count=mysql_num_rows($result);
// $nameselected = $_GET['projectid'];
?>
<script type="text/javascript">
function proname() {
document.formcombo.submit();
}
</script>
</head>
<body>
<form name="formcombo" method="post" action="showtasks_selects.php">
<label for="project" class="formlabels" style="margin-top:2%;">Project:</label>
<select name="projectid" id="projectid" onchange = "getname();">
<!--<select name="projectid" id="projectid"> -->
<?php
while($row2=mysql_fetch_array($result2)) {
echo "<option value=\"".$row2['id_pro']."\">".$row2['name_pro']."\n";
}
?>
</select>
</form>
<script type="text/javascript">
function getname() {
var x = document.getElementById("projectid").selectedIndex.value;
document.write('<a href="showtasks_selects.php?x='+x+'">another page</a>');
}
</script>
<div id="delete_rows_wrapper">
<table>
<form name="form1" method="post" action="">
<tr>
<td class="toptd" colspan="4"><b>The following are rows from the tasks table</b> </td>
</tr>
<tr>
<td><b>ID</b></td>
<td><b>Task Name</b></td>
<td><b>Project</b></td>
<td><b>Description</b></td>
</tr>
<?php while($rows=mysql_fetch_array($result)){ ?>
<tr>
<td><?php echo $rows['id_ctk']; ?></td>
<td><?php echo $rows['name_ctk']; ?></td>
<td><?php echo $rows['name_pro']; ?></td>
<td><?php echo $rows['description_ctk']; ?></td>
</tr> <?php } ?>
</form>
</table>
</div> <!-- end delete_rows_wrapper -->
</body>
============================================== showtasks_selects.php
<head>
<link rel="stylesheet" media="all" type="text/css" href="tasks.css" />
</head>
<body>
<?php
$names = $_GET['projectid'];
echo $names;
?>
</body>
|