CookieÖдæÊý×é[php]
¿ÉÒÔͨ¹ýÐòÁл°Ò»¸öÊý×飬Ȼºó·Åµ½cookieÖÐ
´ÓcookieÖеõ½Öµ£¬È»ºóÔÚ·´ÐòÁл¯£¬×ª»»ÎªÊý×é¡£
$cur_goods_array = unserialize(stripslashes($_COOKIE['shop_cart_info']));
¡¡
¡¡setcookie("shop_cart_info",serialize($cur_goods_array));
Ïà¹ØÎĵµ£º
ÔÎÄÄÚÈÝûÓб仯£¬ÔÚ¹«Ë¾¿ìÏû»¯ÁËÁ½¸öϵͳÁË£¬ËùÒÔ´òËã×Ô¼ºÐ´Ò»¸ö¹¦ÄÜ»¹¿ÉÒԵĸöÈËϵͳ£¬ÎÒÖªµÀÍøÉϺܶ࣬ÎÒÒ²ÊÕ¼¯Á˺ü¸¸ö£¬µ«ÊÇÏë¿´¿´×Ô¼ºÄܲ»ÄÜ×ö³öÀ´£¬ºÃºÃ¼ÓÓÍ°É£¬ÔڳﱸµÄ¹ý³ÌÖÐÓöµ½ÁËÓʼþÕâÑùµÄÎÊÌ⣬ËùÒÔ»¨Á˵ãʱ¼äÑо¿ÁËÒ»·¬£¬ÍøÉÏÕÒµ½µÄºÃÄÚÈÝ£¬ÄóöÀ´·ÖÏíÒ»ÏÂ
ÒýÓÃÍøÖ·£ºhttp://www.china-askpro.com/msg36/qa ......
´óÈýÏÂѧÆÚ£¬ÎÒ½Ó´¥µ½ÁËPHP£¬Ñ§ÁËÒ»µã»ù±¾µÄÓï·¨£¬ÒòΪ¸úCµÄÓï·¨ºÜÏñ£¬ËùÒÔѧÆðÀ´ºÜÊ¡Á¦¡£½¥½¥µØÎÒϲ»¶ÉÏÁËPHPÕâÃÅÓïÑÔ£¬ÒòΪÓÃËü¿ÉÒÔ×öÍøÕ¾£¬µ½ÁË´óËÄÎÒ±ã¸ü¼ÓÉîÈëµØѧPHPÁË£¬Ñ§Ï°ÓÃPHP×ö¶«Î÷³ÉÁËÎÒÉú»îÖеÄÒ»²¿·Ö...............
PHPÊÇÔËÐÐÓÚ·þÎñÆ ......
ͻȻÏëÆðÁËÔÚÒ»´ÎÃæÊÔµÄʱºòÒªÎÒд³öδÀ´Ò»ÌìÊÇÐÇÆÚ¼¸£¬µ±Ê±Ã»Óиøд³öÀ´¡£ÏÖÔÚÏëÏ뻹ÊǾõµÃ¶ÔdateºÍmktimeµÄ¸ÅÄîºÜÄ£ºý£¬ÔÚÕâÀï¼Ç¼ÏÂÒÔ±¸ºóÓ㺳ÌÐòÈçÏÂ
<?php
echo date( "l dS 0f F Y h£ºi£ºs A" );
echo "<br>";
print("July 1, 2010 is on a " . date("l", mktime(0,0,0,7,11,2010)));
?>
Êä³ö½á¹û ......
<?
//ÐÂÎÅÀà±ð
$query_cat="select * from $dbtable1";
$result_cat=mysql_query($query_cat) or die("<mce:script type="text/javascript"><!--
alert('Ìáʾ£º²éÑ°ÐÂÎÅÀà±ðʧ°Ü£¬Çë¸ú¹ÜÀíÔ±ÁªÏµ')
// --></mce:script>");
if(!$resul ......
<?php
/*
*PHP¹ÜÀíMYSQLµÄÊý¾Ý¿âÀà
ʹÓ÷½·¨£º$dbConn = new DbConn([$Êý¾Ý¿âÃû(¿ÉÑ¡)]);
ÔÊÐí·µ»ØµÄ·½·¨£º
Execute($sql) //Ö´ÐÐSQLÓï¾ä£¬Ã»Óзµ»ØÖµ;
getRs($sql) //·µ»Ø²éѯÓï¾äµÄ¼Ç¼£¬Ò»Ìõ;
getRsArray($sql) //·µ» ......