"selected ";
}
echo "$topics\n";
$sel = "";
}
?>
"Mark Bayfield" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Some help please...
>
> I am creating a select list from a database, and
Some help please...
I am creating a select list from a database, and I am trying to hold the
value of what has been selected by a user, while I do some error checking.
It is searching a mysql db to pull out the list. It will then need to pass
values back into the database. The code I am using is
$current_category = $r['category'];
> printf("%s\n",$current_category);
> }
> //Now just print the title in this row
> printf("$indent_str%s\n",$r['title']);
> }
>
> basil
>
> At 11:58 AM 3/31/200
s
following:"; //display it
// update last category name
if ($temp = $r["catagory"])
echo "" . $temp . "";
echo " " . $r["title"] .
"";
}
""Mark Bayfield"" <[EMAIL PROTECTED]> wrote in message
9a3d8o$e2l
quot;;
> while ($r = mysql_fetch_array($result))
> {
> if (empty($temp)) // will be fired only once!
> {
> $temp = $r["category"]; // get category name
> echo "This is category $temp, and it's titles are as following:";
//
> display it
>
I am trying to make a catagory list that displays a distinct catagory, and
then listing titles under that catagory.
Unfortunatly all the data is in one table, and the catagory field is not set
catagories, so there is duplicates in that field.
The code so far is (but I am probably going about it th
6 matches
Mail list logo