Advertisement
Advertisement
| 03.02.2008 at 04:12AM PST, ID: 23207341 |
|
[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: |
function generate_list($parentid) {
$check = false;
$query = mysql_query("SELECT * FROM kategorier WHERE parentID=".$parentid) or die(mysql_error());
while($row = mysql_fetch_object($query)) {
$check_child = mysql_query("SELECT * FROM kategorier WHERE parentID=".$row->ID) or die(mysql_error());
if(mysql_num_rows($check_child)) {
print "<option name='".$row->tittel."' label='".$row->tittel."'>";
print $row->tittel;
print "</option>";
generate_list($row->ID);
}else{
print " <option name='".$row->tittel."' value='$row->ID'> ".$row->tittel."</option>";
}
}
}
the call within the form:
print "Kategori : <SELECT NAME=\"kategori\">";
generate_list(0);
print "</SELECT><br>";
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 03.02.2008 at 05:19AM PST, ID: 21025883 |
| 03.02.2008 at 06:47AM PST, ID: 21026121 |
| 03.02.2008 at 01:08PM PST, ID: 21027584 |
| 03.03.2008 at 01:32AM PST, ID: 21029994 |
| 03.03.2008 at 02:09AM PST, ID: 21030145 |
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: |
<?php
session_start();
dbconnect.....
function generate_list($parentid) {
$check = false;
$query = mysql_query("SELECT * FROM kategorier WHERE parentID=".$parentid) or die(mysql_error());
while($row = mysql_fetch_object($query)) {
$check_child = mysql_query("SELECT * FROM kategorier WHERE parentID=".$row->ID) or die(mysql_error());
$sjekka = mysql_query("SELECT animal.kategori, kategorier.tittel FROM animal, kategorier WHERE animal.kategori=".$row->ID) or die(mysql_error());
$selected = ('SELECTED');
if($sjekka <=0) {
return $selected;
}
if(mysql_num_rows($check_child)) {
print "<option " . $selected." name='".$row->tittel."' label='".$row->tittel."'>";
print $row->tittel;
print "</option>";
print ('heia');
generate_list($row->ID);
}else{
print " <option " . $selected." name='".$row->tittel."' value='$row->tittel'> ".$row->tittel."</option>";
}
}
}
$file_to_be_edited= $_GET["name"];
$query = "SELECT lydid, opprinneligfilnavn, tittel, kortbeskrivelse, kategori, fullurl, infoomfil FROM animal WHERE lydid='$_GET[name]'";
$result = mysql_query($query);
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
print "<FORM METHOD=POST ACTION=\"update.php\">";
print "<INPUT TYPE=\"hidden\" NAME=\"lydid\" VALUE=\"{$row['lydid']}\">" ;
print "Opprinnelig filnavn: {$row['opprinneligfilnavn']}<br>" ;
print "Tittel : <INPUT TYPE=\"text\" NAME=\"tittel\" VALUE=\"BLABLA\"><br>" ;
print "Kort beskrivelse : <INPUT TYPE=\"text\" NAME=\"kortbeskrivelse\" VALUE=\"{$row['kortbeskrivelse']}\"><br>" ;
print "Kategori : <SELECT NAME=\"kategori\">";
generate_list(0);
print "</SELECT><br>";
print "Full URL : <INPUT TYPE=\"text\" NAME=\"fullurl\" VALUE=\"{$row['fullurl']}\"><br>";
print "Informasjon : <INPUT TYPE=\"text\" NAME=\"infoomfil\" VALUE=\"{$row['infoomfil']}\"><br>";
print "<INPUT TYPE=\"submit\">";
print "</FORM>" ;
}
?>
|