µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
PHP
» php+mysql
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
[µo°Ý]
php+mysql
karta155585
µoµu®ø®§
¥[¬°¦n¤Í
karta155585
·í«eÂ÷½u
UID
9341
©«¤l
2
¥DÃD
2
ºëµØ
0
¿n¤À
4
ª÷¿ú
4
ÂI¦W
0
§@·~¨t²Î
windows7
³nÅ骩¥»
Office 2003
¾\ŪÅv
10
©Ê§O
¨k
¦b½u®É¶¡
0 ¤p®É
µù¥U®É¶¡
2012-5-15
³Ì«áµn¿ý
2012-6-13
¤p¾Ç¥Í
©«¤l
2
¥DÃD
2
ºëµØ
0
¿n¤À
4
ÂI¦W
0
§@·~¨t²Î
windows7
³nÅ骩¥»
Office 2003
¾\ŪÅv
10
©Ê§O
¨k
µù¥U®É¶¡
2012-5-15
³Ì«áµn¿ý
2012-6-13
1
#
¸õÂà¨ì
»
˧Ǭݩ«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2012-5-15 10:50
|
¥u¬Ý¸Ó§@ªÌ
[µo°Ý]
php+mysql
½Ð°Ý¤@¤U§Ú·Qn±q¸ê®Æ®w®Ñªí³æ©Ò¦³¸ê®Æ¦ý¬O¨C¦¸¿é¥X³£¥u¦³¤@µ§ªº¸ê®Æ¥X¨Ó¬O¬Æ»ò°ÝÃD??
<?
$conn = mysql_connect("localhost", "root", "1234");
if(@mysql_select_db("test", $conn))
{
//¸ê®Æ®w¦s¦b,«Ø¥ßSQL©R¥O¦r¦ê
$SQL="SELECT * FROM localhostwork";
//«ü©w´£¨ú¸ê®Æªº®Õ¹ï¦r¤¸ªí
mysql_query("set character set utf8");
//±N¦^¶Çµ²ªG¦s©ñ©óÅܼƤ¤
$datalist=mysql_query($SQL);
//±N¸ê®Æ¿ýÂà´«¬°Äæ¦ì°}¦C¶°¦X
$fielddatas=mysql_fetch_array($datalist, MYSQL_BOTH);
//¨ú¥Xµù¼Ð½s¸¹¬°0ªºÄæ¦ì¸ê®Æ
//¨ú¥X¯Z¯Å®y¸¹Äæ¦ìªº¸ê®Æ
echo $fielddatas["NO"];
echo $fielddatas["name"];
echo $fielddatas["student_id"];
echo $fielddatas["gender"];
echo $fielddatas["phone_number"]."<br>";
}
else
{
echo "¸ê®Æ®w¤£¦s¦b";
}
?>
¦¬ÂÃ
¤À¨É
¤p»x
µoµu®ø®§
¥[¬°¦n¤Í
¤p»x
(¤p»x)
·í«eÂ÷½u
´¿¸g¤]¬O¤ô¹q¤u
UID
9
©«¤l
1188
¥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-20
¡@¼ÊºÙ:
¤p»x
¡@ÀY»Î:
´¿¸g¤]¬O¤ô¹q¤u
ºÞ²zû
©«¤l
1188
¥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-20
2
#
µoªí©ó 2012-5-15 11:44
|
¥u¬Ý¸Ó§@ªÌ
<?
$conn = mysql_connect("localhost", "root", "1234");
if(@mysql_select_db("test", $conn))
{
//¸ê®Æ®w¦s¦b,«Ø¥ßSQL©R¥O¦r¦ê
$SQL="SELECT * FROM localhostwork";
//«ü©w´£¨ú¸ê®Æªº®Õ¹ï¦r¤¸ªí
mysql_query("set character set utf8");
//±N¦^¶Çµ²ªG¦s©ñ©óÅܼƤ¤
$datalist=mysql_query($SQL);
//±N¸ê®Æ¿ýÂà´«¬°Äæ¦ì°}¦C¶°¦X
while ($fielddatas=mysql_fetch_array($datalist, MYSQL_BOTH))
{
//³vµ§¦C¥X
echo $fielddatas["NO"];
echo $fielddatas["name"];
echo $fielddatas["student_id"];
echo $fielddatas["gender"];
echo $fielddatas["phone_number"]."<br>";
}
}
else
{
echo "¸ê®Æ®w¤£¦s¦b";
}
?>
½Æ»s¥N½X
¦^´_
1#
karta155585
¤ß¦w¡A¥¦w
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!
TOP
ÀR«ä¦Û¦b :
±o²znÄǤH¡A²zª½n®ð©M¡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¯»µ·