Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

php»º´æÐĵÃ

SQL²éѯ»º´æ
Êʺ϶ÁÕß
±¾½Ì³ÌÊʺÏÓÚÄÇЩ¶Ô»º´æSQL²éѯÒÔ¼õÉÙÊý¾Ý¿âÁ¬½ÓÓëÖ´ÐеĸºÔØ¡¢Ìá¸ß½Å±¾ÐÔÄܸÐÐËȤµÄPHP³ÌÐòÔ±¡£
¸ÅÊö
Ðí¶àÕ¾µãʹÓÃÊý¾Ý¿â×÷ΪվµãÊý¾Ý´æ´¢µÄÈÝÆ÷¡£Êý¾Ý¿â°üº¬Á˲úÆ÷ÐÅÏ¢¡¢Ä¿Â¼½á¹¹¡¢ÎÄÕ»òÕßÁôÑÔ±¾£¬ÓÐЩÊý¾ÝºÜ¿ÉÄÜÊÇÍêÈ«¾²Ì¬µÄ£¬ÕâЩ½«»á´ÓÒ»¸ö»º´æϵͳÖеõ½µÄ¼«´óºÃ´¦¡£
ÕâÑùÒ»¸öϵͳͨ¹ý°ÑSQL²éѯµÄ½á¹û»º´æµ½ÏµÍ³µÄÒ»¸öÎļþÖд洢£¬´Ó¶ø×èÖ¹Á¬½ÓÊý¾Ý¿â£¬¹¹Ôì²éѯÓëÈ¡µÃ·µ»Ø½á¹û¶øÌá¸ßÁËÏìӦʱ¼ä¡£
ÓÐЩϵͳÊý¾Ý¿â²¢²»ÊÇ·ÅÔÚWEB·þÎñÆ÷Éϵģ¬ÕâÑùÐèÒªÒ»¸öÔ¶³ÌÁ¬½Ó(TCP»òÕßÆäËüÀàËƵÄ)£¬»òÕß´ÓÊý¾Ý¿âÖлñÈ¡´óÁ¿µÄÊý¾Ý£¬ÕâÑùÄãµÃÈÌÊܸü¶àʱ¼ä£¬Õâ¾ö¶¨ÓÚϵͳÏìӦʱ¼äÓë×ÊÔ´ÀûÓá£
Ç°Ìá
±¾½Ì³ÌʹÓÃMySQL×÷ΪÊý¾Ý¿â¡£ÄãÐèÒª°²×°MySQL(www.mysql.comÏÂÔØÊÇÓÐЧµÄ)ºÍ¼¤»îPHP MYSQLÀ©Õ¹(ĬÈÏÇé¿öÊǼ¤»îµÄ)¡£
ÓÉÓÚÒª²éѯÊý¾Ý¿â£¬ÄãÐèҪ֪ʶһЩSQL£¨½á¹¹»¯²éѯÓïÑÔ£©µÄ»ù±¾³£Ê¶¡£
»º´æSQL²éѯ½á¹û
ΪʲôҪ»º´æ²éѯ½á¹û£¿
»º´æ²éѯ½á¹ûÄܼ«´óµØ¸Ä½ø½Å±¾Ö´ÐÐʱ¼äºÍ×ÊÔ´ÐèÇó¡£
»º´æSQL²éѯ½á¹ûÒ²ÔÊÐíÄãͨ¹ýºóÆÚ´¦ÀíÊý¾Ý¡£Èç¹ûÄãÓÃÎļþ»º´æÈ¥´æ´¢È«²¿½Å±¾µÄÊä³ö½á¹û£¨HTMLÊä³ö£©£¬ÕâÑù¿ÉÄÜÊÇÐв»Í¨µÄ¡£
µ±ÄãÖ´ÐÐÒ»¸öSQL²éѯʱ£¬µãµäµÄ´¦Àí¹ý³ÌÊÇ£º
<!--[if !supportLists]-->l        <!--[endif]-->Á¬½ÓÊý¾Ý¿â
<!--[if !supportLists]-->l        <!--[endif]-->×¼±¸SQL²éѯ
<!--[if !supportLists]-->l        <!--[endif]-->·¢ËͲéѯµ½Êý¾Ý¿â
<!--[if !supportLists]-->l        <!--[endif]-->È¡µÃ·µ»Ø½á¹û
<!--[if !supportLists]-->l        <!--[endif]-->¹Ø±ÕÊý¾Ý¿âÁ¬½Ó
ÒÔÉÏ·½·¨·Ç³£Õ¼ÓÃ×ÊÔ´²¢ÇÒÏà·´µÄÓ°ÏìÁ˽ű¾µÄÐÔÄÜ¡£Ö»ÄÜͨ¹ýÈ¡µÃµÄ´óÁ¿·µ»ØÊý¾ÝºÍÊý¾Ý¿â·þÎñÆ÷µÄλÖÃÕâ¶þ¸öÒªËØÀ´Ï໥Эµ÷¡£¾¡¹Ü³ÖÐøÁ¬½Ó¿ÉÒԸĽøÁ¬½ÓÊý¾Ý¿âʱµÄ¸ºÔØ£¬µ«·Ç³£ºÄ·ÑÄÚ´æ×ÊÔ´£¬Èç¹û»ñÈ¡µÄÊÇ´óÁ¿µÄÊý¾Ý£¬ÄÇô´æ´¢µÄÈ«²¿Ê±¼ä»á·Ç³£¶ÌÔÝ¡£
´´½¨Ò»ÌõSQL²éѯ£º
SQL(½á¹¹»¯²éѯÓïÑÔ)²éѯ±»ÓÃ×÷²Ù×÷Êý¾Ý¿â¼°ËüÄÚÈݵĽӿڡ£SQL¿ÉÓÃÓÚ¶¨ÒåºÍ±à¼­±íµÄ½á¹¹£¬²åÈëÊý¾Ýµ½±í£¬¸üлòɾ³ý±íÖеÄÐÅÏ¢¡£
SQLÊÇÓÃÓÚÓëÊý¾ÝͨѶµÄÓïÑÔ£¬ÔÚ´ó¶àÊýPHPÊý¾Ý¿âÀ©Õ¹(MySQL,ODBC,OracleµÈ)ͨ¹ý´«µÝ


Ïà¹ØÎĵµ£º

MySQL+PHP²úÉúÂÒÂëµÄÔ­Òò¼°½â¾ö·½·¨

MySQL+PHP²úÉúÂÒÂëÔ­Òò£º
¡¡¡¡¡ô MySQLÊý¾Ý¿âĬÈϵıàÂëÊÇutf8,Èç¹ûÕâÖÖ±àÂëÓëÄãµÄPHPÍøÒ³²»Ò»ÖÂ,¿ÉÄܾͻáÔì³ÉMySQLÂÒÂë;
¡¡¡¡¡ô MySQLÖд´½¨±íʱ»áÈÃÄãÑ¡ÔñÒ»ÖÖ±àÂë,Èç¹ûÕâÖÖ±àÂëÓëÄãµÄÍøÒ³±àÂë²»Ò»ÖÂ,Ò²¿ÉÄÜÔì³ÉMySQLÂÒÂë;
¡¡¡¡¡ô MySQL´´½¨±íʱÌí¼Ó×Ö¶ÎÊÇ¿ÉÒÔÑ¡Ôñ±àÂëµÄ,Èç¹ûÕâÖÖ±àÂëÓëÄãµÄÍøÒ³±àÂë²»Ò»ÖÂ,Ò²¿ÉÄÜÔì³É ......

PHPµÄÈÕÆÚʱ¼äº¯Êýdate()

PHPµÄÈÕÆÚʱ¼äº¯Êýdate()
1£¬Äê-ÔÂ-ÈÕ
echo date('Y-m-j');
2007-02-6
echo date('y-n-j');
07-2-6
´óдY±íʾÄêËÄλÊý×Ö£¬¶øСдy±íʾÄêµÄÁ½Î»Êý×Ö£»
Сдm±íʾÔ·ݵÄÊý×Ö(´øÇ°µ¼)£¬¶øСдnÔò±íʾ²»´øÇ°µ¼µÄÔ·ÝÊý×Ö¡£
echo date('Y-M-j');
2007-Feb-6
echo date('Y-m-d');
2007-02-06
´óдM±íʾÔ·ݵÄ3¸öËõÐ´× ......

php·ÖÒ³

<?php
//·ÖÒ³
$link=mysql_connect("localhost","root","root");
$db=mysql_select_db("bustest",$link);
$res=mysql_query("select * from info");
//Ò»¹²¶àÉÙÌõ
$count=mysql_num_rows($res);
//ÿҳ5ÌõÐÅÏ¢
$perpage=5;
//Ò»¹²¶àÉÙÒ³
$pagecount=ceil($count/$perpage);
//´«¹ýÀ´µÄÒ³Êý
$pagenum=$_REQUE ......

PHPÖнâ¾ö°²×°IMAPÀ©Õ¹


ÔÚÅäÖÃeventumµÄÓʼþ·þÎñµÄʱºò£¬Ê¼ÖÕ²»ÄÜ·¢Óʼþ¡£×¥°üºó·¢ÏÖ¸ù±¾¾ÍûÓÐÁ¬½Óµ½Óʼþ·þÎñÆ÷¡£ÔÙÒ»²é£¬Ô­À´ÊÇ·þÎñÆ÷ôÓÐ
°²×°IMAP¡£ÏÂÃæÊÇ°²×°Ç°ÕÒµ½µÄ×ÊÁÏ~~~
¡¾×ªÔØ¡¿
°²×°sugarcrm£¬Èç¹ûÄã²»°²×°imap£¬ÄÇôÄã¾ÍÎÞ·¨Ê¹ÓõÄËûµÄÓʼþ¹¦ÄÜ£¬ËûµÄÓʼþ¹¦ÄÜÊÇͨ¹ýimapÈ¥¶ÁÔ¶³ÌµÄÓʼþ¡£
ΪÁËÕâ¸öÄ£¿é£¬ÎÒ¿ÉÊÇÑо¿ÁËÒ»¸öÏÂÎ磬 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ