Advertisement
Advertisement
| 03.24.2008 at 05:08PM PDT, ID: 23265753 |
|
[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: |
<?PHP
function findSubs($parentid){
$res = mysql_query("select * from tblCategories where cat_parent='$parentid'") or die ('the error is' .mysql_error() );
while($inf = mysql_fetch_array($res)){
echo "<br> • <a href=\"viewcategory.php?cat_id=".$inf['cat_id']."\" class=\"brownlinks\">".$inf["cat_name"]."</a>";
findSubs($inf["cat_id"]);
}
}
$res = mysql_query("select * from tblCategories where cat_parent='0' order by cat_name asc");
$columncount = 1;
while($inf = mysql_fetch_array($res)){ ?>
<td valign="top"><a href="viewcategory.php?cat_id=<?php echo $inf['cat_id']; ?>" class="title"><?PHP echo $inf["cat_name"]; ?></a>
<?PHP findSubs($inf["cat_id"]); ?>
</td>
<?PHP if($columncount == 3) {
echo '</tr><tr>';
$columncount = 1;
}
else {
$columncount++;
}
}
?>
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 03.25.2008 at 01:56AM PDT, ID: 21200307 |
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: |
function listMenu($menu) {
$query = mysql_query("select * from tblCategories where cat_parent='0' order by cat_name asc");
$results = mysql_fetch_array($query);
if($results > 0){
echo "<div>";
echo "<ul>";
foreach($results as $result) {
echo "<li><a href=\"viewcategory.php?cat_id={result['cat_id']}\" class=\"brownlinks\">{result['cat_name']}</a></li>";
findSubs($result['cat_id']);
}
echo "</ul></div>";
}
else {
echo "<div>No Such Menu</div>";
}
function findSubs($parentID){
$query = mysql_query("select * from tblCategories where cat_parent='$parentID' order by cat_name asc");
$results = mysql_fetch_array($query);
if($results > 0){
echo "<li>";
echo "<ul>";
foreach($results as $result) {
echo "<li><a href=\"viewcategory.php?cat_id={result['cat_id']}\" class=\"brownlinks\">{result['cat_name']}</a></li>";
$query2 = mysql_query("select * from tblCategories where cat_parent='{result['cat_id']}' order by cat_name asc");
$results2 = mysql_fetch_array($query);
if($results2 > 0){
echo "<li>";
echo "<ul>";
foreach($results2 as $result2) {
echo "<li><a href=\"viewcategory.php?cat_id={result2['cat_id']}\" class=\"brownlinks\">{result2['cat_name']}</a></li>";
}
echo "</ul></li>";
}
}
echo "</ul></li>";
}
}
|
| 03.25.2008 at 07:02AM PDT, ID: 21201976 |
| 03.25.2008 at 08:29AM PDT, ID: 21202809 |
| 03.25.2008 at 10:44AM PDT, ID: 21204189 |
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: |
<?php
function listMenu($menu) {
$query = mysql_query("select * from tblCategories where cat_parent='0' order by cat_name asc");
$results = mysql_fetch_array($query);
if($results > 0){
echo "<table>";
echo "<tr>";
foreach($results as $result) {
echo "<td><table><td><tr><a href=\"viewcategory.php?cat_id={result['cat_id']}\" class=\"brownlinks\">{result['cat_name']}</a></tr>";
findSubs($result['cat_id']);
echo "</td></table>";
}
echo "</tr></table>";
}
}
function findSubs($parentID){
$query = mysql_query("select * from tblCategories where cat_parent='$parentID' order by cat_name asc");
$results = mysql_fetch_array($query);
if($results > 0){
foreach($results as $result) {
echo "<tr><a href=\"viewcategory.php?cat_id={result['cat_id']}\" class=\"brownlinks\">{result['cat_name']}</a></tr>";
$query2 = mysql_query("select * from tblCategories where cat_parent='{result['cat_id']}' order by cat_name asc");
$results2 = mysql_fetch_array($query);
if($results2 > 0){
foreach($results2 as $result2) {
echo "<tr><a href=\"viewcategory.php?cat_id={result2['cat_id']}\" class=\"brownlinks\">{result2['cat_name']}</a></tr>";
}
}
}
}
}
?>
|
| 03.25.2008 at 11:23AM PDT, ID: 21204566 |
| 03.25.2008 at 12:23PM PDT, ID: 21205168 |
| 03.26.2008 at 07:49AM PDT, ID: 21212202 |
| 03.26.2008 at 11:10AM PDT, ID: 21214551 |
| 03.26.2008 at 11:16AM PDT, ID: 21214613 |
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: |
<?php
function findSubs($parentID){
$query = mysql_query("select * from tblCategories where cat_parent='$parentID' order by cat_name asc");
$results = mysql_fetch_array($query);
if($results > 0){
foreach($results as $result) {
echo "<tr><a href=\"viewcategory.php?cat_id={result['cat_id']}\" class=\"brownlinks\">{result['cat_name']}</a></tr>";
$query2 = mysql_query("select * from tblCategories where cat_parent='{result['cat_id']}' order by cat_name asc");
$results2 = mysql_fetch_array($query);
if($results2 > 0){
foreach($results2 as $result2) {
echo "<tr><a href=\"viewcategory.php?cat_id={result2['cat_id']}\" class=\"brownlinks\">{result2['cat_name']}</a></tr>";
}
}
}
}
}
function listMenu() {
$query = mysql_query("select * from tblCategories where cat_parent='0' order by cat_name asc");
$results = mysql_fetch_array($query);
if($results > 0){
echo "<table>";
echo "<tr>";
foreach($results as $result) {
echo "<td><table><td><tr><a href=\"viewcategory.php?cat_id={result['cat_id']}\" class=\"brownlinks\">{result['cat_name']}</a></tr>";
findSubs($result['cat_id']);
echo "</td></table>";
}
echo "</tr></table>";
}
}
?>
|
| 03.26.2008 at 11:49AM PDT, ID: 21214918 |
| 03.26.2008 at 11:56AM PDT, ID: 21214992 |
| 03.26.2008 at 04:20PM PDT, ID: 21217420 |