[PHP] Re: holding values in a select list on a form

2001-07-23 Thread Mark Bayfield
"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

[PHP] holding values in a select list on a form

2001-07-23 Thread Mark Bayfield
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

Re: [PHP] Catagory list

2001-03-30 Thread Mark Bayfield
$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

Re: [PHP] Catagory list

2001-03-30 Thread Mark Bayfield
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

Re: [PHP] Catagory list

2001-03-30 Thread Mark Bayfield
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 >

[PHP] Catagory list

2001-03-30 Thread Mark Bayfield
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