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

php mysql»Ø¹öʾÀý

Ê×ÏÈ£¬½¨InnoDBÀàÐÍµÄ±í£¬²ÅÄÜÖ§³ÖÊÂÎñ
$handler = mysql_connect('localhost', '', '');
mysql_select_db('test');
mysql_query('SET AUTOCOMMIT=0'); // ÉèÖÃΪ²»×Ô¶¯Ìá½»²éѯ
mysql_query('START TRANSACTION'); // ¿ªÊ¼²éѯ£¬ÕâÀïÒ²¿ÉÒÔʹÓÃBEGIN
mysql_query("INSERT INTO users VALUES ('ccc')");
mysql_query("DELETE from users WHERE username = 'aac'");
if (mysql_affected_rows($handler) == 0)
mysql_query('ROLLBACK'); // Èç¹ûɾ³ýδÕÒµ½ÏàÓ¦µÄ¼Ç¼Ôò»Ø¹ö£¬²»Ö´ÐÐÉÏÃæµÄ²åÈë²éѯ
mysql_query('COMMIT');
mysql_close($handler);


Ïà¹ØÎĵµ£º

php²»°üº¬Ä³×Ö·û´®µÄÕýÔò±í´ïʽ


 ÕªÒª: ÓÃÕýÔòʵÏÖ°üº¬Ä³¸ö×Ö·û´®ºÜÈÝÒ×£¬µ«Èç¹ûʵÏÖ²»°üº¬Ä³¸ö×Ö·û´®ÄØ£¿×÷Õ߸ø³öÁËÒ»¸ö½â¾ö·½°¸¡£
ÅжÏÒ»¸ö×Ö·û´®ÖÐÊÇ·ñº¬ÓÐÁíÒ»×Ö·û´®£¬phpÓкܶ෽·¨£¬ÈçÏ£º
1. ³£¼ûº¯Êý
strstr($str, "abc");  
strstr($str, "abc");
2. ÕýÔòÆ¥Åä
preg_match("/(abc)/is", $str);  
p ......

PHPÀàµÄ·ÃÎÊ¿ØÖÆ

PHPÖÐÀàµÄ·½·¨Ò²ºÍC++ͨ¹ý¹Ø¼ü×Ö private
¡¢Public
¡¢ protected
À´¿ØÖƵġ£Ï±ßÊÇÏêϸ˵Ã÷£º
1¡¢private
     º¯ÊýǰʹÓùؼü×ÖPrivate±íʾº¯ÊýÊÇ˽Óеģ¬Ë½ÓеÄÒâ˼¹ËÃû˼Ò壬Õë¶Ôµ±Ç°Àà˽ÓУ¬ÎÞÂÛÊÇËûµÄ×ÓÀ໹ÊÇËûµÄʵÀý¶¼ÎÞ·¨·ÃÎÊ¡£
     »¹ÊÇÏÈ¿´´úÂ룺
 &nbs ......

PHP Paypal½Ó¿Ú¿ª·¢

PayPal ¿ìËÙ¡¢°²È«¶øÓÖ·½±ã£¬ÊÇ¿ç¹ú½»Ò×µÄÊ×Ñ¡ÔÚÏ߸¶¿î·½Ê½¡£ÏÖÔÚPayPal¿ÉÒԺ͹úÄڴ󲿷ÖÐÅÓÿ¨¹ØÁª,¿ÉÒÔʵÏÖ¹úÈ˵Ŀç¹ú½»Ò×ÊÕÖ§¡£
ÉêÇëPayPal×¢²áÍøÖ·£ºhttps://www.paypal.com/
paypal½Ó¿ÚÓëÆäËü½Ó¿ÚÓÐЩ²»Í¬£¬ÉÔ΢¸´ÔÓÒ»µã¡£ ÆäÊµÒøÐнӿÚÒ²ËãÊÇÒ»¸öÕ¾µãµÄ²å¼þ¡£
Ëùνpaypal ipn£¨Instant Payment Notification£©£¬¾Í ......

MYSQL·þÎñÎÞ·¨Æô¶¯1067½â¾ö°ì·¨


ÔÚÔËÐÐmysql administratorµÄʱºò,ÎÞ·¨µÇ¼mysql·þÎñÆ÷,²éÕÒ´íÎó,ÀÏÊÇÎÞ·¨½øÐÐ.ÔÚ½øÈëwindowsϵĹÜÀí¹¤¾ßµÄ·þÎñÖÐ,ÒÀÈ»ÎÞ·¨Æô¶¯,Ìáʾ˵ÊÇ´íÎó1067.½â¾ö·½°¸ÈçÏÂ:
1\½øÈëÃüÁîÌáʾ·û,ÊäÈë sc delete mysql
ÌáʾÈôÊÇdelete service success,Ö¤Ã÷ɾ³ý·þÎñ³É¹¦;
2\ÔËÐÐmysqlµÄbinĿ¼ÏÂÃæµÄmysqlinstanceconfig,¶Ômysql½øÐ ......

solaris10ÏÂmysql°²×°ÓÚÅäÖÃ ×ªÔØ


ǰ´ÎдÁ˸ö³ÌÐòÅÜÔÚsolaris10ÉÏ£¬ÒªÓõ½mysqlÊý¾Ý¿â£¬È¥sunÍøÕ¾ÉÏÏÂÒ»¸ö¹ýÀ´£¬
È»ºópkgadd mysql5.* ʲôÌáʾ¶¼Ã»£¬¾Í°²×°Íê³ÉÁË£¬ÓôÃÆµÄÊÂÇé¾ÍÕâÑù·¢ÉúÁË©¤©¤
ÎÒ²»ÖªµÀMYSQLµÄĬÈÏÓû§ÃûÃÜÂëÊÇʲô£¬°´ÕÕWINDOWSÖÐʹÓõľ­ÑéÊÔÁËN±é£¬
²»ÐУ¡Ö»ºÃGOOGLEÁË£¬ºÃ²»ÈÝÒ׸㶨¡£Ò»ÏÂΪGOOGLEÖ®ÄÚÈÝ£¬·ÇÔ­´´
Unix&Linux ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ