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

PHPÖеij£ÓõÄ25¸öMYSQLº¯Êý

1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó {3RY4HVT?  
¸ñʽ£º Fv n:V\eb  
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]]) _I;+p eq  
Àý£º 1(V>8}zn  
$conn = @mysql_connect("localhost", "username", "password") or dir("²»ÄÜÁ¬½Óµ½Mysql Server"); LqnN5l@ _B  
˵Ã÷£ºÊ¹ÓøÃÁ¬½Ó±ØÐëÏÔʾµÄ¹Ø±ÕÁ¬½Ó !mFx= +  
hQ!slO  
2¡¢mysql_pconnect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó F.P4c:GD  
¸ñʽ£º =$`xis\  
resource mysql_pconnect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]]) KjR^6v  
Àý£º \VL[,z=q.  
$conn = @mysql_pconnect("localhost", "username", "password") or dir("²»ÄÜÁ¬½Óµ½Mysql Server"); 19od# d3+  
˵Ã÷£ºÊ¹ÓøÃÁ¬½Óº¯Êý²»ÐèÒªÏÔʾµÄ¹Ø±ÕÁ¬½Ó£¬ËüÏ൱ÓÚʹÓÃÁËÁ¬½Ó³Ø bH}6N>Fp  
b&.j>=  
3¡¢mysql_close()-¹Ø±ÕÊý¾Ý¿âÁ¬½Ó %1Gat6V<'  
Àý£º 1 h(oty2p  
$conn = @mysql_connect("localhost", "username", "password") or die("²»ÄÜÁ¬½Óµ½Mysql Server"); S4]}/Imn)  
@mysql_select_db("MyDatabase") or die("²»ÄÜÑ¡ÔñÕâ¸öÊý¾Ý¿â£¬»òÊý¾Ý¿â²»´æÔÚ"); /60 `"xH  
echo "ÄãÒѾ­Á¬½Óµ½MyDatabaseÊý¾Ý¿â"; Sbub|  
mysql_close(); Ui6f>0?  
@MIBW)P<  
4¡¢mysql_select_db()-Ñ¡ÔñÊý¾Ý¿â j&(2ze:=*$  
¸ñʽ£º ?qr-t+  
boolean mysql_select_db(string db_name [, resource link_id]) loVUB'OSv  
Àý£º $M\|zUQu.  
$conn = @mysql_connect("localhost", "username", "password") or die("²»ÄÜÁ¬½Óµ½Mysql Server"); m#SDB6l  
@mysql_select_db("MyDatabase") or die("²»ÄÜÑ¡ÔñÕâ¸öÊý¾Ý¿â£¬»òÊý¾Ý¿â²»´æÔÚ"); "&/:"~r  
,eq[X\B>  
5¡¢mysql_query()-²éѯMySQL )&di c6r  
¸ñʽ£º ?Dro)fH1  
resource mysql_query (string query, [resource link_id]) z'a#lA.$}  
Àý£º $Gb] K{e  
$linkId = @mysql_connect("localhost", "username", "password") or die("²»ÄÜÁ¬½Óµ½Mysql Server"); Ju$=Tn  
@mysql_select_db("MyDatabas


Ïà¹ØÎĵµ£º

Weblogic 9.1µÄdomainÅäÖÃmysqlÁ¬½Ó³Ø

 
Weblogic 9.1µÄdomainÅäÖÃmysqlÁ¬½Ó³Ø
¡¡¡¡±¾ÎĽéÉÜÔÚweblogic 9.1ϵÄdomainÅäÖÃmysqlÁ¬½Ó³Ø²½Ö裺
¡¡¡¡1.ÔÚweblogicĿ¼ÏµÄserverlibÏÂÌí¼ÓmysqlÇý¶¯
¡¡¡¡mysql-connector-java-3.1.11-bin.jar
¡¡¡¡2.ÔÚweblogicĿ¼ÏµÄcommoninÏÂÕÒµ½commEnv.cmd´ò¿ª
¡¡¡¡ÕÒµ½set weblogic_classpath= ºó±ß¼ÓÉÏmysqlÇý¶¯ ......

linuxÏÂMySQL°²×°¼°ÉèÖÃ

1. ¹ØÓÚ±¾ÎÄ
±¾ÎĽ«ÒÔMySQL 5.0.51ΪÀý£¬ÒÔCentOS 5Ϊƽ̨£¬½²ÊöMySQLÊý¾Ý¿âµÄ°²×°ºÍÉèÖá£
2. ¹ØÓÚMySQL
MySQLÊÇ×îÁ÷ÐеĿªÔ´SQLÊý¾Ý¿â¹ÜÀíϵͳ£¬ËüÓÉMySQL AB¿ª·¢¡¢·¢²¼ºÍÖ§³Ö¡£MySQL ABÊÇÒ»¼ÒÓÉMySQL¿ª·¢ÈËÔ±´´½¨µÄÉÌÒµ¹«Ë¾£¬ËüÊÇÒ»¼ÒʹÓÃÁËÒ»Öֳɹ¦µÄÉÌҵģʽÀ´½áºÏ¿ªÔ´¼ÛÖµºÍ·½·¨Â۵ĵڶþ´ú¿ªÔ´¹«Ë¾¡£MySQLÊÇMySQL ......

PHPÖÐCURL·½·¨curl_setopt()º¯ÊýµÄһЩ²ÎÊý

 
ÒÔϹØÓڴ˺¯Êý¸÷ÏîʹÓòÎÊý:
bool curl_setopt (int ch, string option, mixed value)
curl_setopt()º¯Êý½«ÎªÒ»¸öCURL»á»°ÉèÖÃÑ¡Ïî¡£option²ÎÊýÊÇÄãÏëÒªµÄÉèÖã¬valueÊÇÕâ¸öÑ¡Ïî¸ø¶¨µÄÖµ¡£
ÏÂÁÐÑ¡ÏîµÄÖµ½«±»×÷Ϊ³¤ÕûÐÎʹÓÃ(ÔÚoption²ÎÊýÖÐÖ¸¶¨)£º
CURLOPT_INFILESIZE
: µ±ÄãÉÏ´«Ò»¸öÎļþµ½Ô¶³ÌÕ¾µã£¬Õâ¸öÑ¡Ï ......

MySQL µÄÍâ¼üÓë²ÎÕÕÍêÕûÐÔ

 
1. Ê²Ã´ÊDzÎÕÕÍêÕûÐÔ?
——————–
²ÎÕÕÍêÕûÐÔ(ÍêÕûÐÔÔ¼Êø)ÊÇÊý¾Ý¿âÉè¼ÆÖеÄÒ»¸öÖØÒª¸ÅÄµ±Êý¾Ý¿âÖеÄÒ»¸ö±íÓëÒ»¸ö»ò¶à¸ö±í½øÐйØÁªÊ±¶¼»áÉæ¼°µ½²ÎÕÕÍêÕûÐÔ¡£±ÈÈçÏÂÃæÕâ¸öÀý×Ó£º
ÎÄÕ·ÖÀà±í -  categories
category_id    &n ......

09Äê5ÔÂ11ºÅ×îÐÂPHPÃæÊÔÌâ

һѡÔñÌ⣺
1.ÏÂÃæµÄÄǸöÑ¡Ïî¿ÉÒÔ»ñÈ¡±íµ¥Ìá½»µÄÖµ£¿£¨¶àÑ¡£© b d
<form name='frm1' method="post">
<input type="text" name="name" ><input type="submit" name="a">
</form>
A.$_GET['name']
B.$_POST['name']
C.$_SESSION['name']
D.$_REQUEST['name']
E.$_GLOBAL['name']
2.ÍüÀ²¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ