ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¤U©Ô¦¡¿ï³æªº°ÝÃD

¤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\"; //¥D­n¬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>';

        ÀR«ä¦Û¦b : ¤H¥Í¨S¦³©Ò¦³Åv¡A¥u¦³¥Í©Rªº¨Ï¥ÎÅv¡C
ªð¦^¦Cªí ¤W¤@¥DÃD