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

11-2-4 ³æ¤@°Q½×¥DÃDµ{¦¡ºô­¶

11-2-4 ³æ¤@°Q½×¥DÃDµ{¦¡ºô­¶

11-2-4   ³æ¤@°Q½×¥DÃDµ{¦¡ºô­¶
·í§Ú­Ì¦b°Q½×¶µ¥Ø¦Cªíµ{¦¡ºô­¶index.php¤¤¡AÂI¿ï¤F¬Y¤@­Ó¤w¦s¦bªº°Q½×¶µ¥Ø¡y¥DÃD¡z¶W³sµ²¡A´N·|³sµ²¶i¤J¸Ó°Q½×¥DÃDªº¹ïÀ³°Q½×ºô­¶join.php¡A¦¹µ{¦¡ºô­¶¦P¼Ë¤À¬°¨â­Ó³¡¤À¡A¤@­Ó¬O¥Ø«e¥þ³¡ªº°Q½×¤å³¹¦Cªí¡A¥t¤@¬O°Ñ»P¥Ø«e¥DÃD°Q½×ªºµo¨¥ªí³æ¡G

¹Ï11-34   join.phpºô­¶µe­±¡C

§Ú­Ì³sµ²¶i¤J°Q½×ºô­¶join.phpªººô§}®É¡A¦b¨äºô§}§ÀºÝ§t¦³¤@­Ó¡yID=X¡zªº°Ñ¼Æ¡A³o­Ó°Ñ¼Æ­ÈX´N¬O°Q½×¥DÃDªº½s¸¹¡A¤]´N¬O¸ê®Æªí¤¤¡y¥D½s¸¹¡zÄæ¦ìªº¸ê®Æ­È¡C
¦b¥Ø«e¥DÃD¥þ³¡ªº°Q½×¤å³¹¦Cªíªº³¡¤À¡A§Ú­Ì¥²¶·¤À§OŪ¨ú¸ê®Æ®w¤¤ªº¡y¥D¼ÐÃD¡z¸ê®Æªí¨ÓŪ¨ú¡y°Q½×¥DÃD¡zªºµo¨¥(¤U¹ÏA³¡¤À)¡A¤Î¸ê®Æ®w¤¤ªº¡y¦¸¼ÐÃD¡z¸ê®Æªí¨ÓŪ¨ú¡y°Ñ¤©°Q½×¡zªºµo¨¥¸ê®Æ(¤U¹ÏB³¡¤À)¡G

¹Ï11-35  °Q½×¥DÃD»P°Ñ»P°Q½×¤å³¹¡C

¦]¬°¸ê®ÆŪ¨úªº¤è¦¡»P°Q½×¶µ¥Ø¦Cªíµ{¦¡ºô­¶¬Û¦P¡A©Ò¥Hµ§ªÌ¤£¦AÂØ­z¡A¦ý¬O¡A´£¿ô±z¡G¤£¥²­«½Æ¨Ï¥Îmysql_connect()¨ç¼Æ«Ø¥ß¸ê®Æ®wªº³s½u³á¡I¥u­n¦bMainTitle¡]¥D¼ÐÃD¡^¸ê®Æªí¤¤ªº¸ê®ÆŪ¨ú§¹²¦«á¡AµM«á¦A­«·s¨Ï¥Îmysql_query()¨ç¼Æ¥´¶}SubTitle¡]¦¸¼ÐÃD¡^¸ê®Æªí¨ÓŪ¨ú¸ê®Æ§Y¥i¡I

°Ñ»P¥Ø«e¥DÃD°Q½×ªºµo¨¥ªí³æ»P¤@¯ëªºªí³æ»s§@¬Û¦P¡A·í«ö¤U¡y°e¥X°Q½×¤º®e¡z«ö¶s«á¡Aªí³æ¸ê®Æ±N°e¥æjoinnew.phpµ{¦¡³B²z¡A¦ý¬O§Ú­Ì¦bªí³æ¤¤ÁÙ¥t¥~¼W¥[¤F¤@­Ó¶Ç°e¥Ø«e°Q½×¥DÃDªº¡y¥D½s¸¹¡zÁôÂÃÄæ¦ì¡A¬°¦ó­n¦³³o­ÓÁôÂÃÄæ¦ì¡Hµ§ªÌ©ó¤U¤@¸`»¡©ú¡C
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

join.php
  1. <?
  2. //³sµ²MySQL Server
  3.     $conn = mysql_connect("localhost", "root", "12345a");
  4. //¿ï¾Ü¸ê®Æ®w
  5.     mysql_select_db("BBS", $conn);
  6. //«ü©w´£¨ú¸ê®Æªº®Õ¹ï¦r¤¸ªí
  7.     mysql_query("set character set big5");
  8. //«Ø¥ß¬d¸ß¦r¦ê
  9. $SQL="Select * From maintitle Where ¥D½s¸¹=" . $_REQUEST["ID"];
  10. //±N¦^¶Çµ²ªG¦s©ñ©óÅܼƤ¤
  11. $datalist=mysql_query($SQL);
  12. //±N¸ê®Æ¿ýÂà´«¬°Äæ¦ì°}¦C¶°¦X
  13. $fielddatas=mysql_fetch_array($datalist);
  14. ?>

  15. <HTML>
  16. <head><title>PHP¾Ç²ß°Q½×°Ï</title>
  17. <meta http-equiv="Content-Type" content="text/html; charset=big5">
  18. </head>
  19. <BODY>
  20. <h2 Align="Center"><img border="0" src="bbs.gif"></h2>
  21. <!-- ¥H¤U¬°¡u°Q½×¥DÃD¡v³¡¤À -->
  22. <TABLE Width="100%"><TR><TD Align=Center bgColor=#000080>
  23. <B><font color="#FFFFFF" size="2">°Ý ÃD °Q ½×&nbsp;</font></B></TD></TR></TABLE>  
  24. <?
  25. $Email = "<A HREF=mailto:" . $fielddatas["Email"] . ">" . $fielddatas["Email"] . "</A>"  ;
  26. ?>  
  27. <CENTER><TABLE width="100%">  
  28. <TR><TD width="10%" bgcolor="#D7D7FF"><font color="#000080"><B>
  29. <font size="2">§@ªÌ:</font></B><font size="2"><?=$fielddatas["©m¦W"];?></font></font></TD>
  30. <TD width="10%" bgcolor="#D7D7FF"><B><font size="2" color="#000080">Email:</font></B>
  31. <font size="2" color="#000080"><?=$Email;?></font>
  32. </TD><TD width="55%" bgcolor="#D7D7FF"><B><font color="#000080" size="2">¥DÃD:</font></B>
  33. <font size="2"><?=$fielddatas["¥DÃD"];?></font> </TD>
  34. <TD width="20%" bgcolor="#D7D7FF"><B><font size="2" color="#000080">¤é´Á:</font></B>
  35. <font size="2" color="#000080"><?=$fielddatas["µo¨¥¤é´Á"];?></font>  
  36. </TD></TR>
  37. <TR><TD BgColor=#F7FBFF colspan="4"><font size="2"><?=$fielddatas["¤º®e"];?></font></TD></TR>
  38. </Table></CENTER>
  39. <HR>
  40.   
  41. <!-- ¥H¤U¬°¡u°Ñ¤©°Q½×¤å³¹¡v³¡¤À -->
  42. <?
  43. //«Ø¥ß¬d¸ß¦r¦ê
  44. $SQL="Select * From subtitle Where ¥D½s¸¹=" . $_REQUEST["ID"];
  45. //±N¦^¶Çµ²ªG¦s©ñ©óÅܼƤ¤
  46. $datalist1=mysql_query($SQL);
  47. //±N¸ê®Æ¿ýÂà´«¬°Äæ¦ì°}¦C¶°¦X
  48. while (($fielddatas1=mysql_fetch_array($datalist1)))
  49. {
  50.   $Email = "<A HREF=mailto:" . $fielddatas1["Email"] . ">" . $fielddatas1["Email"] . "</A>"  ;
  51. ?>
  52.   <CENTER><TABLE width="100%">
  53. <TR><TD width="10%" bgcolor="#FFACD6"><B><font size="2" color="#000000">§@ªÌ:</font></B>
  54. <font size="2" color="#000000"><?=$fielddatas1["©m¦W"];?></font></TD>
  55. <TD width="10%" bgcolor="#FFACD6"><font color="#000000"><B><font size="2">Email:</font></B>
  56. <font size="2"><?=$Email;?></font></font></TD>
  57. <TD width="55%" bgcolor="#FFACD6"><B><font color="#000000" size="2">¥DÃD:</font></B>
  58. <font size="2"><?=$fielddatas1["¥DÃD"];?></font></TD>
  59. <TD width="20%" bgcolor="#FFACD6"><B><font color="#000000" size="2">¤é´Á:</font></B>
  60. <font size="2"><?=$fielddatas1["µoªí¤é´Á"];?></font></TD></TR>
  61. <TR><TD BgColor=#FFF0F8 colspan="4"><font size="2"><?=$fielddatas1["¤º®e"];?></font></TD></TR>
  62.   </Table></CENTER><hr size="1" color="#008000">
  63. <?
  64. }
  65. ?>
  66.   
  67. <!-- ¥H¤U¬°¡u°Ñ»P°Q½×¡v¿é¤Jªí³æ -->
  68. <TABLE Width="100%"><TR><TD Align=Center bgColor=#000080>
  69. <B><font color="#FFFFFF" size="2">°Ñ »P ¥» °Ý ÃD °Q ½×</font></B></TD></TR></TABLE>

  70. <FORM action=joinnew.php method=POST>
  71. <Input Type=Hidden Name=ID Value=<?=$_REQUEST["ID"];?>>
  72. <CENTER><TABLE Border="1" bordercolor="#FF9933" cellspacing="0" bgcolor="#FFCC66">
  73. <TR><TD><font size="2">©m¦W¡G</font></TD>
  74. <TD><font size="2"><INPUT Type=Text Size="30" name="©m¦W"></font></TD></TR>
  75. <TR><TD><font size="2">Email¡G</font></TD>
  76. <TD><font size="2"><INPUT Type=Text Size="30" name="Email"></font></TD></TR>
  77. <TR><TD><font size="2">¥DÃD¡G</font></TD>
  78. <TD><font size="2"><INPUT Type=Text Size="60" name="¥DÃD" Value="¦^ÂÐ:"></font></TD></TR>
  79. <TR><TD><font size="2">¤º®e¡G</font></TD>
  80. <TD><font size="2"><TEXTAREA name="¤º®e" rows="8" cols="60"></TEXTAREA></font></TD></TR>
  81. </TABLE>
  82. <INPUT Type="submit" value=" °e¥X°Q½×¤º®e "></CENTER>
  83. </Form>
  84. <HR>
  85. <p align="right"><A HREF="index.php">¦^°Q½×°Ï</A>
  86. </BODY>
  87. </HTML>
½Æ»s¥N½X
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

        ÀR«ä¦Û¦b : §Ú­Ì³Ì¤jªº¼Ä¤H¤£¬O§O¤H¡D¥i¯à¬O¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD