php Á¬½ÓÊý¾Ý¿â £¬ ²åÈë¼Ç¼
$username = "root";
$password = "123";
// ½¨Á¢Á¬½Ó
mysql_connect('localhost', $username, $password);
// Ñ¡ÔñÁ¬½ÓÊý¾Ý¿â
mysql_select_db("test");
// ²åÈëÊý¾Ý
mysql_query("insert into tb values (12)"); // ²åÈëÊý¾Ý
Ïà¹ØÎĵµ£º
ÔÚPHPÀÈç¹ûÄãûÓÐÊÖд¹¹Ô캯Êý£¬ÔòphpÔÚʵÀý»¯Õâ¸ö¶ÔÏóµÄʱºò£¬»á×Ô¶¯ÎªÀà³ÉÔ±ÒÔ¼°Àà·½·¨½øÐгõʼ»¯£¬·ÖÅäÄÚ´æµÈ¹¤×÷£¬µ«ÊÇÓÐЩʱºò²»ÄÜÂú×ãÎÒÃǵÄÒªÇ󣬱ÈÈçÎÒÃÇÒªÔÚ¶ÔÏóʵÀý»¯µÄʱºò´«µÝ²ÎÊý£¬ÄÇô¾ÍÐèÒªÊÖ¶¯±àд¹¹Ô캯ÊýÁË£¬ÊÖд¹¹Ô캯ÊýÓÐÁ½ÖÖд·¨£¬Ö»ÊDZíÏÖÐÎʽ²»Í¬£¬Æäʵ±¾ÖÊÒ»Ñù
class test
{
&nb ......
PayPal ¿ìËÙ¡¢°²È«¶øÓÖ·½±ã£¬ÊÇ¿ç¹ú½»Ò×µÄÊ×Ñ¡ÔÚÏ߸¶¿î·½Ê½¡£ÏÖÔÚPayPal¿ÉÒԺ͹úÄڴ󲿷ÖÐÅÓÿ¨¹ØÁª,¿ÉÒÔʵÏÖ¹úÈ˵Ŀç¹ú½»Ò×ÊÕÖ§¡£
ÉêÇëPayPal×¢²áÍøÖ·£ºhttps://www.paypal.com/
paypal½Ó¿ÚÓëÆäËü½Ó¿ÚÓÐЩ²»Í¬£¬ÉÔ΢¸´ÔÓÒ»µã¡£ ÆäÊµÒøÐнӿÚÒ²ËãÊÇÒ»¸öÕ¾µãµÄ²å¼þ¡£
Ëùνpaypal ipn£¨Instant Payment Notification£©£¬¾Í ......
Ñ»·ÒýÓÃÒ»Ö±ÊÇPHP£¨Ó¦Óã©ÖÐÒ»¸öÍ»³öµÄÎÊÌâ¡£ÎÊÌâµÄ³öÏÖÊÇÓÉÓÚÕâÑùµÄÒ»¸öÊÂʵ£ºPHPΪphpÄÚ²¿±äÁ¿Ê¹ÓÃÒ»¸ö“ÒýÓüÆÊýÆ÷”ÄÚ´æ·ÖÅä»úÖÆ¡£ÕâÒ»»úÖÆ¶ÔһЩÏà±ÈÀ´Ëµ½Ï³¤Ê±¼äÔËÐеĽű¾£¨±ÈÈ磬ӦÓ÷þÎñÆ÷»òÕßeZ²âÊÔ×é¼þ£©»áÒý·¢ÎÊÌ⣬ÒòΪÄÚ´æÔڽű¾½áÊøÇ°Ê²»»á±»ÊͷŵôµÄ¡£µ«ÊÇ£¬£¨¼¸ºõ£©Ã»ÓÐÈË ......
×Ö·û´®µÄд·¨
×Ö·û´®ÒÔµ¥¡¢Ë«»òµ¹ÒýºÅΧס·Ö±ðÓв»Í¬µÄÒåÒâ¡£
µ¥ÒýºÅ
ÀýÈ磺
$str = 'An apple a day keeps the docter away.'
µ±×Ö·û´®³öÏÖ ' ·ûºÅʱ£¬±ØÐë¼ÓÉÏ£º
'I'm wing'
Ó¦¸Ä³É£º
'I'm wing'
²Å¶Ô£¬ÆäÖÐ ' ¼´³ÆÎªÌøÍÑ×Ö·û (escape character)¡£
Ë«ÒýºÅ
ÒÔË«ÒýºÅΧסµÄ×Ö·û´® PHP »á¶Ô¸Ã×Ö·û´®× ......