Advertisement
Advertisement
| 09.17.2008 at 05:19PM PDT, ID: 23740842 |
|
[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: |
$startDate = $_POST['txs_y'] . "-" . $_POST['txs_m'] . "-" . $_POST['txs_d'];
$endDate = $_POST['txe_y'] . "-" . $_POST['txe_m'] . "-" . $_POST['txe_d'];
$indEntity = $_POST['entityID'];
$sql ="SELECT * FROM $table_name1 WHERE (trans_date BETWEEN '$startDate' AND '$endDate') AND (entityID = '$indEntity') ORDER BY trans_date, type, catID,cat_subID";
$sqlsecond = "SELECT entityID, SUM(amount) FROM $table_name1 WHERE (trans_date BETWEEN '$startDate' AND '$endDate') AND (entityID = '$indEntity') GROUP BY entityID ";
$t_result = @mysql_query($sql)or die (mysql_error());
$second_result = @mysql_query($sqlsecond)or die (mysql_error());
//get the number of rows in the result set
//check the number of t_results
$num = @mysql_num_rows($t_result);
$second_num = @mysql_num_rows($second_result);
if ($second_num < 1) {
//do nothing
} else {
//if second_results are found,loop through them
//and make a form selection block
while ($row =mysql_fetch_array($second_result)){
$sec_entity = $row['entityID'];
$total = $row['amount'];
}
}
...
$option_block2 .="<tr>
<td>$sec_entity</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td>$total</td>
</tr>";
|