0
다음과 같은 db-retrieve를 사용하면 내가 갖고있는 목록 상자가됩니다. 어떤 작품에 검색을 여기html 목록 상자 밖의 추가 필드에 additonal txt를 표시하는 목록 상자
: 는하지만 별도의 필드 목록 상자 아래에 표시되는 $ 설명 2를 필요로하고 사용자가 목록에서 다른 항목을 클릭 할 때 그것의 내용을 변경해야합니다
echo "<form action=\"admin.php\" method=\"post\">";
echo "Industry:<SELECT name=\"industry\" size=\"10\">";
$result=sql_query("SELECT cat, title, desc, parentid
FROM industries
WHERE language='english'");
while(list($cid2, $ctitle2, $desc2, $parentid2) = sql_fetch_row($result)) {
if ($cid2==$userindustry) {
$sel = "selected";
} else {
$sel = "";
}
if ($parentid2!=0) $ctitle2=getparentindustry($parentid2,$ctitle2);
echo "<option value=\"$cid2\" $sel>$ctitle2</option>";
}
echo "</SELECT>
<br>$desc2<br> # place to show description of list item
<input type=\"hidden\" name=\"op\" value=\"save\">
<input type=\"submit\" value=\"Go\"></form><br>";
나는 지금 시간을 보내고 있지만 뭔가를 찾지 못했기 때문에 여기 누군가가 나를 도울 수있다.
사이드 코드는 PHP입니다.
미리 감사드립니다.