µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
PHP
»
PHP+MySQL ¤Jªù¹ê§@
» 8-1-2 ¡u§@¥Î¤¤¡vªº¸ê®Æ¿ý
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
8-1-2 ¡u§@¥Î¤¤¡vªº¸ê®Æ¿ý
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
1
#
¸õÂà¨ì
»
˧Ǭݩ«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2011-4-20 10:07
|
¥u¬Ý¸Ó§@ªÌ
8-1-2 ¡u§@¥Î¤¤¡vªº¸ê®Æ¿ý
8-1-2 ¡u§@¥Î¤¤¡vªº¸ê®Æ¿ý
¦b§Ú̦s¨ú¸ê®Æªíªº¸ê®Æ®É¡A¬O¥H¤@µ§¸ê®Æ¿ý¬°³æ¦ì¡I¤]´N¬O»¡¡G§ÚÌ¥u¯à¹ï¡u§@¥Î¤¤¡vªº¸ê®Æ¿ý¶i¦æ¸ê®Æ¦s¨úªº°Ê§@¡C·í§Ú̶}±Ò¸ê®Æªí®É¡A¡u§@¥Î¤¤¡vªº¸ê®Æ¿ý¦ì¸m¬O¦b¸ê®Æªíªº²Ä¤@µ§¸ê®Æ¤W¡A¦pªG§ÚÌ·Qn§ïÅܥثe¾Þ§@ªº¡u§@¥Î¤¤¡vªº¸ê®Æ¿ý¦ì¸m¡A«ç¿ì©O¡H
·í§Ú̧Q¥Î¡umysql_featch_array()¡v¨ç¼Æ¨ú±o¤@µ§¸ê®Æ¿ý¸ê®Æ«á¡A«h¡u§@¥Î¤¤¡vªº¸ê®Æ¿ý¦ì¸m·|¦Û°Ê²¾¨ì¤U¤@µ§©|¥¼´£¨ú¸ê®Æªº¸ê®Æ¿ý¦ì¸m¤W¡A·í§Ú̦bÅÜ´«¸ê®Æ¿ý¦ì¸m®É¡]Åܧó§@¥Î¤¤¸ê®Æ¿ý¦ì¸m¡^¡An¤p¤ß¤@¥ó¨Æ¡A¨º´N¬O§@¥Î¤¤¸ê®Æ¿ý¦ì¸m¬O§_²¾¹L¤F³Ì«á¤@µ§¸ê®Æªº¦ì¸m¡I¤]´N¬O¥þ³¡ªº¸ê®Æ¿ý³£¤w¸g´£¨ú¹L¸ê®Æ¤F¡C
¨º§Ú̦p¦ó±oª¾¥þ³¡ªº¸ê®Æ¿ý³£¤w¸g´£¨ú¹L¸ê®Æ¤F©O¡H·í§Ú̧Q¥Î¡umysql_fetch_array()¡v¨ç¼Æ¨ú±o¸ê®Æ¿ý¸ê®Æ©Ò±oªº¦^¶ÇȬOfalse®É´N¬O§@¥Î¤¤¸ê®Æ¿ý¦ì¸m²¾¹LÀY¤F¡A¦^¶ÇȬOfalseªºì¦]ÁÙ¦³¤@Ó¡A´N¬O¶}±Òªº¬O¤@ӪŪº¸ê®Æªí¡C
n´£¨ú¥þ³¡ªº¸ê®Æ¿ý¸ê®Æ¡A¤SnÁקK¡u²¾¹LÀY¡vªº¿ù»~µo¥Í¡A«h§ÚÌÀ³¸Ó§Q¥Îwhile°j°é±Ôz¨Ó´£¨ú¸ê®Æ¡G
//¨ú±oÄæ¦ì¼Æ¶q
$fieldnum=mysql_num_fields($datalist);
//±N¸ê®Æ¿ýÂà´«¬°Äæ¦ì°}¦C¶°¦X
while ($fielddatas=mysql_fetch_array($datalist))
{
//¿é¥XÄæ¦ì¸ê®Æ
for ($x=0;$x<$fieldnum;$x++)
{
echo $fielddatas[$x] . "\t";
}
echo "<br>";
}
½Æ»s¥N½X
¼Ó¥D¼ö©«
½×¾Â¤£Åý¸ê¾ú¤ñ¸û²Lªº¤H¤U¸ü¬d¬Ýªþ¥óªº¥Î·N
EXCEL±MÄÝ°Q½×°Ï¦Û§Y¤é°_¤¤¾Ç¥Í¥H¤W·|û¤è
³Â»¶®a±Ú°Q½×°Ï ³q¥Îª©³W
OFFICE °ò¦±Ð¾Ç¼Æ¦ì¤Æ
ATX ¹q·½¨ÑÀ³¾¹¤â°Ê±Ò°Ê(¤£±µ¥D¾÷ªO±Ò°Ê)
¦Ò¼{Ãö³¬½×¾Âºô¯¸
³Â»¶®a±Ú°Q½×°ÏÁô¨pÅv¬Fµ¦»¡©ú
³Â»¶®a±Ú°Q½×°Ï ¸Û¼xª©¥D
¥Ñ½׾ÂÂà¶iªº¤¤¾Ç¥Íµ¥¯Å¥H¤W·|û,½ÐÃöª`!
14-2 ¸ê®Æ®w¹Ï¤ù¦s¨ú
¦¬ÂÃ
¤À¨É
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ª÷¿ú
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
¦b½u®É¶¡
490 ¤p®É
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1190
¥DÃD
394
ºëµØ
113
¿n¤À
1747
ÂI¦W
1
§@·~¨t²Î
Vista
³nÅ骩¥»
Office 2003
¾\ŪÅv
200
©Ê§O
¨k
¨Ó¦Û
¥xÆW
µù¥U®É¶¡
2010-5-1
³Ì«áµn¿ý
2024-11-23
2
#
µoªí©ó 2011-4-20 10:08
|
¥u¬Ý¸Ó§@ªÌ
¹ê°µ¾Ç²ß1¡G
Ū¨úStuents¸ê®Æ®w¸Ì¡utranscript¡]¦¨ÁZ³æ¡^¡v¸ê®Æªí¤¤¥þ³¡ªº¸ê®Æ¡A¨Ã¥Hªí®æ«¬¦¡¿é¥X©óºô¶¤¤¡G
¤U¸ü
(21.89 KB)
2011-4-20 10:08
¹Ï8-9 ½d¨Òex08_06.php¡C
ex08_06.php
<?
$conn = mysql_connect("localhost", "root", "12345a");
if(@mysql_select_db("STUDENTS", $conn))
{
//«ü©w´£¨ú¸ê®Æªº®Õ¹ï¦r¤¸ªí
mysql_query("set character set big5");
//¸ê®Æ®w¦s¦b,«Ø¥ßSQL©R¥O¦r¦ê
$SQL="SELECT * FROM transcript";
//±N¦^¶Çµ²ªG¦s©ñ©óÅܼƤ¤
$datalist=mysql_query($SQL);
//¨ú±oÄæ¦ì¼Æ¶q
$fieldnum=mysql_num_fields($datalist);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>½d¨Òex08_06a</title>
</head>
<center><table border=1 width=100%>
<?
/**************¦C¥XÄæ¦ì©ïÀY***************/
echo "<tr>";
for ($x=0 ;$x<$fieldnum;$x++)
{
echo "<td>" . mysql_field_name($datalist,$x) . "</td>";
}
echo "</tr>";
/**************¦C¥XÄæ¦ì¸ê®Æ***************/
//±N¸ê®Æ¿ýÂà´«¬°Äæ¦ì°}¦C¶°¦X
while ($fielddatas=mysql_fetch_array($datalist))
{
//¿é¥XÄæ¦ì¸ê®Æ
echo "<tr>";
for ($x=0;$x<$fieldnum;$x++)
{
echo "<td>" . $fielddatas[$x] . "</td>";
}
echo "</tr>";
}
?>
<table></body>
</html>
<?
}
else
{
echo "¸ê®Æ®w¤£¦s¦b";
}
?>
½Æ»s¥N½X
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
ÀR«ä¦Û¦b :
½_ÁJµ²±o¶V¹¡º¡¡A¶V·|©¹¤U««¡A¤@Ó¤H¶V¦³¦¨´N¡A´Nn¶V¦³Á¾¨Rªº¯ÝÃÌ¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·