- ©«¤l
- 1
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 2
- ÂI¦W
- 0
- §@·~¨t²Î
- 23
- ³nÅ骩¥»
- 213
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-7-6
- ³Ì«áµn¿ý
- 2014-7-6
|
¤U©Ô¦¡¿ï³æªº°ÝÃD
§Úªººô¯¸¬O wangtom.no-ip.org/BOOK/1.php
§Úªºname ¸òitem ªº¿ï¶µ «ö¤Usubmit·|¶Ç¨ì¥t¤@Óºô¶inde.php
¦ý§Ún«ç»òÅ㦡¦binde.phpºô¶¤W
¥H¤U¬O§Úªºµ{¦¡
<form action=\"inde.php\" method=\"post\" target=\"_blank\">
<input type=\"submit\" value=\"submit\">
</form>
<label> name itme<br /></label>
<?
$link = mysql_pconnect(\"localhost\", \"root\", \"0935820227\");
mysql_select_db(\"app\") or die(\"µLªk¿ï¾Ü¸ê®Æ®w\");
//mysql_select_db($dbName); //¶}±Ò¸ê®Æ®w¡A³oÃä³o¦æ·|«Ü¦h¾l¶Ü¡H
$str = \"Select test1.Name,test2.item
FROM test1 join test2 join test3
on test1.pid=test3.pid AND test3.iid=test2.iid\"; //¥Dn¬O§Æ±æ0227_postofficenum³o±i¸ê®ÆªíªºlocalÄæ¦ì¸ê®Æ¥þ³¡¶i¤J¤U©Ô¦¡¿ï³æ...
$result = mysql_query($str); //sql¬d¸ßµ²ªG
$i=0;//³B²z§Ç¸¹¡C³o¬O¨Ì§Aªºµ{¦¡³B²z¡A¥¿³W¨Ó»¡§A¦]¸Ón¹ïÀ³ID¡C¤£¹L§Ú¼È¤£²z·|¡C
echo '<select>';
//§Ú§ï¥Îmysql_fetch_assoc¡C¦]¬°³o¼ËKEY¤~¥i¹ïÀ³¨ì¹êÅéÄæ¦ì¦WºÙ¡Cmysql_fetch_row¬O¥u¦³¼Æ¦rKEY¡C¤ñ¸û¤£¦n¡C
while ($row = mysql_fetch_assoc($result)) {
$i++;
echo \"<option value=$i>\";
echo $row['Name'].' ';
echo $row['item'].\"<BR>\";
echo \"</option>\";
}
echo '</select>'; |
|