CGI-BBS > データベース > 簡易データベース > 簡易データベースの改造で結果の項目を任意のものだけ表示したい


カレッヂ
カレッヂ


質問者 デルフィナス  投稿日 7/10(木) 17:13:05  [削除] (返信・回答が付いた後にこの質問の削除はできません)
ディフォルトでは検索結果で8項目表示されるところを
検索かける際に、例えばラジオボタンで
「名前」	と「年齢帯」($NAME,$AGE)を選択した場合、
結果にはこの2つの項目のみ表示させたい。

	print "<table border=2 cellpadding=1 cellspacing=1><tr>\n";

	print "<th nowrap>登録日</th>\n";
	print "<th nowrap>名前</th>\n";
	print "<th nowrap>Eメール</th>\n";
	print "<th nowrap>性別</th>\n";
	print "<th nowrap>年齢帯</th>\n";
	print "<th nowrap>ニックネーム</th>\n";
	print "<th nowrap>地域</th>\n";
	print "<th nowrap>ひとこと</th>\n";

	print "</tr>\n";

	foreach $data (@NEW) {

		($d,$DATE,$NAME,$EMAIL,$SEX,$AGE,$HANDLE,$PREF,$REM) = split(/\,/,$data);
		
HTML記述部分を増減出来ても、
検索かける際に、指定は不可能でしょうか?
不細工なやり方でも構いませんので、どなたか知恵をお貸し下さい。
おねがいします。

プロバイダ参照:
サーバのOS:UNIXサーバ
パソコンのOS:Mac9
エディタ:
FTPソフト:
サーバ移転:していない
改造:している 改造前正常動作
CGI習熟度:middle

返信(回答)する

 


Web裏技