<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>QQmaster blog</title>
	<atom:link href="http://qqmaster.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://qqmaster.info</link>
	<description></description>
	<lastBuildDate>Sat, 19 May 2012 03:11:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>工具型网站首页的设计思考(转)</title>
		<link>http://qqmaster.info/%e5%b7%a5%e5%85%b7%e5%9e%8b%e7%bd%91%e7%ab%99%e9%a6%96%e9%a1%b5%e7%9a%84%e8%ae%be%e8%ae%a1%e6%80%9d%e8%80%83%e8%bd%ac/</link>
		<comments>http://qqmaster.info/%e5%b7%a5%e5%85%b7%e5%9e%8b%e7%bd%91%e7%ab%99%e9%a6%96%e9%a1%b5%e7%9a%84%e8%ae%be%e8%ae%a1%e6%80%9d%e8%80%83%e8%bd%ac/#comments</comments>
		<pubDate>Sat, 19 May 2012 03:02:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[product]]></category>
		<category><![CDATA[cdc]]></category>
		<category><![CDATA[tencent]]></category>
		<category><![CDATA[产品]]></category>
		<category><![CDATA[网站]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=923</guid>
		<description><![CDATA[转载自：http://cdc.tencent.com/?p=5220 什么是工具型网站 我们先从wikipedia上了解三组概念： 工具：是指能够方便人们完成工作的器具。 application：用来帮助用户完成某个单独的或是一组相关的工作的计算机软件。 web application：指通过使用Web和Web浏览器技术，跨越网络完成一个或多个任务的应用程序，通常需要使用Web浏览器。 由此可见，应用就是计算机领域的工具，工具型网站可定义为承载了一个或多个网页应用的网站。它专注于让用户完成一系列的任务，如注册、支付等。 首页的用户需求 首页的用户大体说来可分为三类：不了解的新用户、有兴趣的新用户、老用户。 对于新用户而言，他们势必会问到这些问题： 我在这能做些什么？ 这个网站能提供哪些对我很重要的东西？ 对于已经有兴趣的用户也会有些其他的疑问： 我应该怎么开始？ 我是否必须注册？如果是，应该怎样注册？ 总得来说，首页应该解答新用户的疑惑并且帮助他们找到功能的入口；而对于老用户，则需要更明显、快捷的登录入口。 首页的目标 《designing for the social web》一书将用户的使用分为几个步骤：不了解——感兴趣——第一次使用——常规使用——有情感。而首页对于前面三个步骤至关重要！ 这样看来，首页有两个目标： 1. 让不了解的用户了解网站并产生兴趣，最终促成用户使用。 2. 让有兴趣的用户尽快开始使用。 首页的设计 在实际工作中我们会碰到几种不同类型的工具型网站，针对其网站内容的不同，其首页的表现形式也大不一样。 集中应用型 这类网站本质上是一组或者多组web app，功能多且相对简单，不会产生大量用户数据。 1. 核心结构 将使用最多的功能展示在首页对于用户来说就是最快的入口。用户通过logo、 banner、网站声明等了解网站性质，然后就是找到自己要的功能。 2. 注册/登录模块 因为用户不想分散精力去记起用户名和密码，或者是他们太专注在自己要做的事情上，原则上只在必要时才让用户登录。但如果大部分功能都需要先登录，那么在首页直接展示登录表单是有必要的。 &#8230; <a href="http://qqmaster.info/%e5%b7%a5%e5%85%b7%e5%9e%8b%e7%bd%91%e7%ab%99%e9%a6%96%e9%a1%b5%e7%9a%84%e8%ae%be%e8%ae%a1%e6%80%9d%e8%80%83%e8%bd%ac/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F%25E7%25BD%2591%25E7%25AB%2599%25E5%25A4%259A%25E8%25AF%25AD%25E8%25A8%2580%25E6%259B%25BF%25E6%258D%25A2%25E6%2596%25B9%25E6%25B3%2595%2F&from=http%3A%2F%2Fqqmaster.info%2F%25E5%25B7%25A5%25E5%2585%25B7%25E5%259E%258B%25E7%25BD%2591%25E7%25AB%2599%25E9%25A6%2596%25E9%25A1%25B5%25E7%259A%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E6%2580%259D%25E8%2580%2583%25E8%25BD%25AC%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">网站多语言替换方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25AE%2580%25E5%258D%2595%25EF%25BC%258C%25E9%25AB%2598%25E6%2595%2588%25EF%25BC%258C%25E5%2588%2586%25E9%25A1%25B5%25E5%2587%25BD%25E6%2595%25B0%25E8%25BD%25AC%2F&from=http%3A%2F%2Fqqmaster.info%2F%25E5%25B7%25A5%25E5%2585%25B7%25E5%259E%258B%25E7%25BD%2591%25E7%25AB%2599%25E9%25A6%2596%25E9%25A1%25B5%25E7%259A%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E6%2580%259D%25E8%2580%2583%25E8%25BD%25AC%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP简单，高效，分页函数(转)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fchatroulette-com%2F&from=http%3A%2F%2Fqqmaster.info%2F%25E5%25B7%25A5%25E5%2585%25B7%25E5%259E%258B%25E7%25BD%2591%25E7%25AB%2599%25E9%25A6%2596%25E9%25A1%25B5%25E7%259A%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E6%2580%259D%25E8%2580%2583%25E8%25BD%25AC%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">chatroulette.com这个随机视频网站</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F100%25E4%25B8%2587%25E4%25BB%25B610%25E5%25AF%25B8%25E5%25B9%25B3%25E7%259B%2598%25E9%259A%25A7%25E9%2581%2593%25E7%25AA%2591%25E8%25AE%25BE%25E8%25AE%25A1-%25E7%25AA%2591%25E7%2582%2589%25E8%25AF%25BE%25E7%25A8%258B%25E8%25AE%25BE%25E8%25AE%25A1-%25E6%2599%25AF%25E5%25BE%25B7%25E9%2595%2587%25E9%2599%25B6%25E7%2593%25B7%2F&from=http%3A%2F%2Fqqmaster.info%2F%25E5%25B7%25A5%25E5%2585%25B7%25E5%259E%258B%25E7%25BD%2591%25E7%25AB%2599%25E9%25A6%2596%25E9%25A1%25B5%25E7%259A%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E6%2580%259D%25E8%2580%2583%25E8%25BD%25AC%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">100万件10寸平盘隧道窑设计-窑炉课程设计-景德镇陶瓷学院</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>转载自：<a href="http://cdc.tencent.com/?p=5220">http://cdc.tencent.com/?p=5220</a></p>
<div class="text">
<p><strong>什么是工具型网站</strong><br />
我们先从wikipedia上了解三组概念：<br />
工具：是指能够方便人们完成工作的器具。<br />
application：用来帮助用户完成某个单独的或是一组相关的工作的计算机软件。<br />
web application：指通过使用Web和Web浏览器技术，跨越网络完成一个或多个任务的应用程序，通常需要使用Web浏览器。<br />
由此可见，应用就是计算机领域的工具，工具型网站可定义为承载了一个或多个网页应用的网站。它专注于让用户完成一系列的任务，如注册、支付等。<span id="more-5220"></span></p>
<p><strong>首页的用户需求</strong><br />
首页的用户大体说来可分为三类：不了解的新用户、有兴趣的新用户、老用户。<br />
对于新用户而言，他们势必会问到这些问题：<br />
我在这能做些什么？<br />
这个网站能提供哪些对我很重要的东西？<br />
对于已经有兴趣的用户也会有些其他的疑问：<br />
我应该怎么开始？<br />
我是否必须注册？如果是，应该怎样注册？<br />
总得来说，首页应该解答新用户的疑惑并且帮助他们找到功能的入口；而对于老用户，则需要更明显、快捷的登录入口。<br />
<strong> </strong><br />
<strong>首页的目标</strong><br />
《designing for the social web》一书将用户的使用分为几个步骤：不了解——感兴趣——第一次使用——常规使用——有情感。而首页对于前面三个步骤至关重要！</p>
<p><img class="aligncenter size-full wp-image-5222" src="http://cdc.tencent.com/wp-content/uploads/2012/02/13.jpg" alt="" width="720" height="238" /></p>
<p>这样看来，首页有两个目标：<br />
1. 让不了解的用户了解网站并产生兴趣，最终促成用户使用。<br />
2. 让有兴趣的用户尽快开始使用。</p>
<p><strong>首页的设计</strong><br />
在实际工作中我们会碰到几种不同类型的工具型网站，针对其网站内容的不同，其首页的表现形式也大不一样。</p>
<p>集中应用型<br />
这类网站本质上是一组或者多组web app，功能多且相对简单，不会产生大量用户数据。<br />
1.  核心结构<br />
将使用最多的功能展示在首页对于用户来说就是最快的入口。用户通过logo、 banner、网站声明等了解网站性质，然后就是找到自己要的功能。<br />
2. 注册/登录模块<br />
因为用户不想分散精力去记起用户名和密码，或者是他们太专注在自己要做的事情上，原则上只在必要时才让用户登录。但如果大部分功能都需要先登录，那么在首页直接展示登录表单是有必要的。<br />
3.  案例<br />
58同城<br />
有两级目录：城市目录、功能目录。用户通过这两级目录很容易找到想要的功能。但使用这些功能大都不用注册，所以首页并没有明显的登录模块。</p>
<p><img class="aligncenter size-full wp-image-5223" src="http://cdc.tencent.com/wp-content/uploads/2012/02/25.jpg" alt="" width="720" height="234" /></p>
<p>&nbsp;</p>
<p>腾讯充值中心<br />
首页的核心模块依旧在目录结构，用户由此了解网站主要业务以及如何开始自己的任务。</p>
<p><img class="aligncenter size-full wp-image-5224" src="http://cdc.tencent.com/wp-content/uploads/2012/02/32.jpg" alt="" width="720" height="439" /></p>
<p>&nbsp;</p>
<p>去除一些运营性需求，可以得到一个更加纯粹的充值网站：</p>
<p><img class="aligncenter size-full wp-image-5225" src="http://cdc.tencent.com/wp-content/uploads/2012/02/42.jpg" alt="" width="720" height="455" /></p>
<p>
<strong>数据管理型</strong><br />
这类网站本质上一个大的web app。功能流程复杂，会产生大量数据，往往承载了强大的数据管理功能。<br />
 核心框架<br />
为了方便用户掌控及管理自己创建的内容，首页的策略一般会先引导用户创建账户或下载客户端（下载客户端的下一步也是注册），然后再开始任务。为了说服用户开始任务，它一般会包括以下几个模块：<br />
价值声明：说明网站提供的功能及意义，快速打消访问者疑虑。</p>
<p><img class="aligncenter size-full wp-image-5226" src="http://cdc.tencent.com/wp-content/uploads/2012/02/52.jpg" alt="" width="720" height="153" /><br />
投入产出：告诉用户能得到什么，使访问者对产品的使用有预期，并建立信心。</p>
<p><img class="aligncenter size-full wp-image-5227" src="http://cdc.tencent.com/wp-content/uploads/2012/02/61.jpg" alt="" width="720" height="197" /></p>
<p>视频介绍：让用户快速全面地了解网站。</p>
<p><img class="aligncenter size-full wp-image-5228" src="http://cdc.tencent.com/wp-content/uploads/2012/02/72.jpg" alt="" width="720" height="289" /><br />
权威推荐/典型用户：让用户产生同理心，增强对产品的信赖。</p>
<p><img class="aligncenter size-full wp-image-5229" src="http://cdc.tencent.com/wp-content/uploads/2012/02/81.jpg" alt="" width="720" height="248" /></p>
<p>行动号召：当访问者产生兴趣时，适时地让他们开始使用。</p>
<p><img class="aligncenter size-full wp-image-5230" src="http://cdc.tencent.com/wp-content/uploads/2012/02/91.jpg" alt="" width="720" height="212" /><br />
这些模块其实分三个等级层层深入地说服用户使用产品：</p>
<p><img class="aligncenter size-full wp-image-5231" src="http://cdc.tencent.com/wp-content/uploads/2012/02/102.jpg" alt="" width="720" height="417" /><br />
尽管列出了这些模块，但实际情况中并不都必要，最终得看用户对产品的信心。Evernote在等级一就能说服用户，dropbox的页面则只有一个视频介绍。<br />
1. 注册/登录模块<br />
这类网站注册和登录模块都非常重要，一方面已注册用户数一般远远大于新用户数，另一方面首页很大一部分程度是为了注册的，老用户有固定的入口即可。但在首页我们需要强调哪一个？<br />
这个问题更多地取决于产品的商业目标。受产品策略的影响，同样是拥有大量已注册用户且用户登录频繁的产品，gmail的首页强调登录，而facebook的首页则强调注册。我们也看到115网盘和华为网盘的首页明显就不同：</p>
<p><img class="aligncenter size-full wp-image-5232" src="http://cdc.tencent.com/wp-content/uploads/2012/02/111.jpg" alt="" width="720" height="576" /></p>
<p>但无论如何，登录模块最好不要跳转页面，否则会增加老用户的操作成本。<br />
2. 案例<br />
mailchimp<br />
首页包含价值声明、投入产出、视频介绍、典型用户、行动号召等模块，极力说服用户开始使用产品。</p>
<p><img class="aligncenter size-full wp-image-5233" src="http://cdc.tencent.com/wp-content/uploads/2012/02/121.jpg" alt="" width="720" height="1403" /></p>
<p>
<strong>独立操作型</strong><br />
这类网站往往是一个几步就能完成任务的小型web app。<br />
1.  核心框架<br />
往往只有几个简单的控件和操作说明就能完成任务。由于使用成本不高，用户也会很乐于尝试使用。<br />
2. 注册/登录<br />
这类网站一般不需要注册或是简单的注册，也可以将注册需要的内容贯穿在任务操作中从而摒弃注册模块。<br />
3. 案例<br />
Minus<br />
用户进入页面后能很快理解这是个分享类网站，只要将图片拖入到网页中并填写资料即可开始使用。</p>
<p><img class="aligncenter size-full wp-image-5234" src="http://cdc.tencent.com/wp-content/uploads/2012/02/131.jpg" alt="" width="720" height="443" /></p>
<p>Senduit<br />
简单的步骤指引告诉用户网站的功能和操作方式，使用时无需注册。</p>
<p><img class="aligncenter size-full wp-image-5235" src="http://cdc.tencent.com/wp-content/uploads/2012/02/141.jpg" alt="" width="720" height="542" /></p>
<p>
<strong>结语</strong><br />
网站的首页需要回答用户一些非常重要的问题，才能让新用户愿意使用我们的产品。<br />
本文主要探讨了工具类网站首页的设计目标以及三种设计框架。而在实际项目中还需对更具体的场景进行分析、考虑运营性的需求、对单个模块的交互进行推敲，最终才能得到一个能吸引用户、留住用户的有效首页。</p>
</div>
<p>(本文出自Tencent CDC Blog，转载时请注明出处)</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F%25E7%25BD%2591%25E7%25AB%2599%25E5%25A4%259A%25E8%25AF%25AD%25E8%25A8%2580%25E6%259B%25BF%25E6%258D%25A2%25E6%2596%25B9%25E6%25B3%2595%2F&from=http%3A%2F%2Fqqmaster.info%2F%25E5%25B7%25A5%25E5%2585%25B7%25E5%259E%258B%25E7%25BD%2591%25E7%25AB%2599%25E9%25A6%2596%25E9%25A1%25B5%25E7%259A%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E6%2580%259D%25E8%2580%2583%25E8%25BD%25AC%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">网站多语言替换方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25AE%2580%25E5%258D%2595%25EF%25BC%258C%25E9%25AB%2598%25E6%2595%2588%25EF%25BC%258C%25E5%2588%2586%25E9%25A1%25B5%25E5%2587%25BD%25E6%2595%25B0%25E8%25BD%25AC%2F&from=http%3A%2F%2Fqqmaster.info%2F%25E5%25B7%25A5%25E5%2585%25B7%25E5%259E%258B%25E7%25BD%2591%25E7%25AB%2599%25E9%25A6%2596%25E9%25A1%25B5%25E7%259A%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E6%2580%259D%25E8%2580%2583%25E8%25BD%25AC%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP简单，高效，分页函数(转)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fchatroulette-com%2F&from=http%3A%2F%2Fqqmaster.info%2F%25E5%25B7%25A5%25E5%2585%25B7%25E5%259E%258B%25E7%25BD%2591%25E7%25AB%2599%25E9%25A6%2596%25E9%25A1%25B5%25E7%259A%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E6%2580%259D%25E8%2580%2583%25E8%25BD%25AC%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">chatroulette.com这个随机视频网站</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F100%25E4%25B8%2587%25E4%25BB%25B610%25E5%25AF%25B8%25E5%25B9%25B3%25E7%259B%2598%25E9%259A%25A7%25E9%2581%2593%25E7%25AA%2591%25E8%25AE%25BE%25E8%25AE%25A1-%25E7%25AA%2591%25E7%2582%2589%25E8%25AF%25BE%25E7%25A8%258B%25E8%25AE%25BE%25E8%25AE%25A1-%25E6%2599%25AF%25E5%25BE%25B7%25E9%2595%2587%25E9%2599%25B6%25E7%2593%25B7%2F&from=http%3A%2F%2Fqqmaster.info%2F%25E5%25B7%25A5%25E5%2585%25B7%25E5%259E%258B%25E7%25BD%2591%25E7%25AB%2599%25E9%25A6%2596%25E9%25A1%25B5%25E7%259A%2584%25E8%25AE%25BE%25E8%25AE%25A1%25E6%2580%259D%25E8%2580%2583%25E8%25BD%25AC%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">100万件10寸平盘隧道窑设计-窑炉课程设计-景德镇陶瓷学院</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/%e5%b7%a5%e5%85%b7%e5%9e%8b%e7%bd%91%e7%ab%99%e9%a6%96%e9%a1%b5%e7%9a%84%e8%ae%be%e8%ae%a1%e6%80%9d%e8%80%83%e8%bd%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php编程：两数相除,如何取商的整数部分?</title>
		<link>http://qqmaster.info/php%e7%bc%96%e7%a8%8b%ef%bc%9a%e4%b8%a4%e6%95%b0%e7%9b%b8%e9%99%a4%e5%a6%82%e4%bd%95%e5%8f%96%e5%95%86%e7%9a%84%e6%95%b4%e6%95%b0%e9%83%a8%e5%88%86/</link>
		<comments>http://qqmaster.info/php%e7%bc%96%e7%a8%8b%ef%bc%9a%e4%b8%a4%e6%95%b0%e7%9b%b8%e9%99%a4%e5%a6%82%e4%bd%95%e5%8f%96%e5%95%86%e7%9a%84%e6%95%b4%e6%95%b0%e9%83%a8%e5%88%86/#comments</comments>
		<pubDate>Thu, 17 May 2012 03:24:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[取整]]></category>
		<category><![CDATA[整数]]></category>
		<category><![CDATA[相除]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=913</guid>
		<description><![CDATA[转载自：http://zhidao.baidu.com/question/140986419.html &#60;?php //php编程：两数相除,如何取商的整数部分? $a=8; $b=3; $out= $a/$b; echo '无取整:'.$out.'&#60;br&#62;'; echo '进一法取整:'.ceil&#40;$out&#41;.'&#60;br&#62;'; echo '舍去法取整:'.floor&#40;$out&#41;.'&#60;br&#62;'; echo '对变数转成整数型态 :'.intval&#40;$out&#41;.'&#60;br&#62;'; echo '对浮点数进行四舍五入:'.round&#40;$out&#41;.'&#60;br&#62;'; //根据你的要求列出了典型的 根据你的需求来吧.... ?&#62;<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="php100学习记录27" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259527%2F&from=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/03/7383753.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录27</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php100学习记录48" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259548%2F&from=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/27/6912847.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录48</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php100学习记录73-74" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259573-74%2F&from=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/07/7866228.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录73-74</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php100学习记录79" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259579%2F&from=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录79</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>转载自：http://zhidao.baidu.com/question/140986419.html</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//php编程：两数相除,如何取商的整数部分?</span>
<span style="color: #000088;">$a</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">8</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$b</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$out</span><span style="color: #339933;">=</span> <span style="color: #000088;">$a</span><span style="color: #339933;">/</span><span style="color: #000088;">$b</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'无取整:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$out</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'进一法取整:'</span><span style="color: #339933;">.</span><span style="color: #990000;">ceil</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$out</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'舍去法取整:'</span><span style="color: #339933;">.</span><span style="color: #990000;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$out</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'对变数转成整数型态 :'</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$out</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'对浮点数进行四舍五入:'</span><span style="color: #339933;">.</span><span style="color: #990000;">round</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$out</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//根据你的要求列出了典型的 根据你的需求来吧....</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="php100学习记录27" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259527%2F&from=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/03/7383753.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录27</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php100学习记录48" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259548%2F&from=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/27/6912847.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录48</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php100学习记录73-74" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259573-74%2F&from=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/07/7866228.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录73-74</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php100学习记录79" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259579%2F&from=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录79</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/php%e7%bc%96%e7%a8%8b%ef%bc%9a%e4%b8%a4%e6%95%b0%e7%9b%b8%e9%99%a4%e5%a6%82%e4%bd%95%e5%8f%96%e5%95%86%e7%9a%84%e6%95%b4%e6%95%b0%e9%83%a8%e5%88%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XX秒快速注册？那接下来呢？(转载)</title>
		<link>http://qqmaster.info/xx%e7%a7%92%e5%bf%ab%e9%80%9f%e6%b3%a8%e5%86%8c%ef%bc%9f%e9%82%a3%e6%8e%a5%e4%b8%8b%e6%9d%a5%e5%91%a2%ef%bc%9f%e8%bd%ac%e8%bd%bd/</link>
		<comments>http://qqmaster.info/xx%e7%a7%92%e5%bf%ab%e9%80%9f%e6%b3%a8%e5%86%8c%ef%bc%9f%e9%82%a3%e6%8e%a5%e4%b8%8b%e6%9d%a5%e5%91%a2%ef%bc%9f%e8%bd%ac%e8%bd%bd/#comments</comments>
		<pubDate>Wed, 16 May 2012 15:51:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[product]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=917</guid>
		<description><![CDATA[转载:http://www.alibuybuy.com/posts/72920.html 以Google Analytics这样的流量统计服务为例，如下图示。直接在页面说明，注册后只需再将相应的JavaScript代码复制并粘贴到自己的站点页面代码中，就可以获得该服务为你提供的便利。简单明了，很容易是不是？<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="3"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="LAMP兄弟连:memcached的安装及管理 笔记" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Flamp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259Ememcached%25E7%259A%2584%25E5%25AE%2589%25E8%25A3%2585%25E5%258F%258A%25E7%25AE%25A1%25E7%2590%2586-%25E7%25AC%2594%25E8%25AE%25B0%2F&from=http%3A%2F%2Fqqmaster.info%2Fxx%25E7%25A7%2592%25E5%25BF%25AB%25E9%2580%259F%25E6%25B3%25A8%25E5%2586%258C%25EF%25BC%259F%25E9%2582%25A3%25E6%258E%25A5%25E4%25B8%258B%25E6%259D%25A5%25E5%2591%25A2%25EF%25BC%259F%25E8%25BD%25AC%25E8%25BD%25BD%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/03/06/16621240.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">LAMP兄弟连:memcached的安装及管理 笔记</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="看的更远，准备好未来，那么未来并不可怕！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F%25E7%259C%258B%25E7%259A%2584%25E6%259B%25B4%25E8%25BF%259C%25EF%25BC%258C%25E5%2587%2586%25E5%25A4%2587%25E5%25A5%25BD%25E6%259C%25AA%25E6%259D%25A5%25EF%25BC%258C%25E9%2582%25A3%25E4%25B9%2588%25E6%259C%25AA%25E6%259D%25A5%25E5%25B9%25B6%25E4%25B8%258D%25E5%258F%25AF%25E6%2580%2595%25EF%25BC%2581%2F&from=http%3A%2F%2Fqqmaster.info%2Fxx%25E7%25A7%2592%25E5%25BF%25AB%25E9%2580%259F%25E6%25B3%25A8%25E5%2586%258C%25EF%25BC%259F%25E9%2582%25A3%25E6%258E%25A5%25E4%25B8%258B%25E6%259D%25A5%25E5%2591%25A2%25EF%25BC%259F%25E8%25BD%25AC%25E8%25BD%25BD%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/06/8665474.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">看的更远，准备好未来，那么未来并不可怕！</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="无聊的星期六、星期天" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fboring-saturday-sunday%2F&from=http%3A%2F%2Fqqmaster.info%2Fxx%25E7%25A7%2592%25E5%25BF%25AB%25E9%2580%259F%25E6%25B3%25A8%25E5%2586%258C%25EF%25BC%259F%25E9%2582%25A3%25E6%258E%25A5%25E4%25B8%258B%25E6%259D%25A5%25E5%2591%25A2%25EF%25BC%259F%25E8%25BD%25AC%25E8%25BD%25BD%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/06/1831563.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">无聊的星期六、星期天</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="3" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>转载:<a href="http://www.alibuybuy.com/posts/72920.html">http://www.alibuybuy.com/posts/72920.html</a><br />
以Google Analytics这样的流量统计服务为例，如下图示。直接在页面说明，注册后只需再将相应的JavaScript代码复制并粘贴到自己的站点页面代码中，就可以获得该服务为你提供的便利。简单明了，很容易是不是？</p>
<p><a href="http://qqmaster.info/wp-content/uploads/2012/05/9c12_911-preview_next_steps.png"><img title="9c12_911-preview_next_steps" src="http://qqmaster.info/wp-content/uploads/2012/05/9c12_911-preview_next_steps-300x148.png" alt="" width="300" height="148" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="3"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="那个人在天桥下，留下等待工作的电话号码，我想问他，多少人打给他？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fdengdai-gongzuo-de-dianhua%2F&from=http%3A%2F%2Fqqmaster.info%2Fxx%25E7%25A7%2592%25E5%25BF%25AB%25E9%2580%259F%25E6%25B3%25A8%25E5%2586%258C%25EF%25BC%259F%25E9%2582%25A3%25E6%258E%25A5%25E4%25B8%258B%25E6%259D%25A5%25E5%2591%25A2%25EF%25BC%259F%25E8%25BD%25AC%25E8%25BD%25BD%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/03/04/3086314.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">那个人在天桥下，留下等待工作的电话号码，我想问他，多少人打给他？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php100学习记录48" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259548%2F&from=http%3A%2F%2Fqqmaster.info%2Fxx%25E7%25A7%2592%25E5%25BF%25AB%25E9%2580%259F%25E6%25B3%25A8%25E5%2586%258C%25EF%25BC%259F%25E9%2582%25A3%25E6%258E%25A5%25E4%25B8%258B%25E6%259D%25A5%25E5%2591%25A2%25EF%25BC%259F%25E8%25BD%25AC%25E8%25BD%25BD%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/04/27/6912847.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录48</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="29 precious dogs died in Guangxi, CHINA" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F29-precious-dogs-died-in-guangxi-china%2F&from=http%3A%2F%2Fqqmaster.info%2Fxx%25E7%25A7%2592%25E5%25BF%25AB%25E9%2580%259F%25E6%25B3%25A8%25E5%2586%258C%25EF%25BC%259F%25E9%2582%25A3%25E6%258E%25A5%25E4%25B8%258B%25E6%259D%25A5%25E5%2591%25A2%25EF%25BC%259F%25E8%25BD%25AC%25E8%25BD%25BD%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/06/1831604.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">29 precious dogs died in Guangxi, CHINA</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="3" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/xx%e7%a7%92%e5%bf%ab%e9%80%9f%e6%b3%a8%e5%86%8c%ef%bc%9f%e9%82%a3%e6%8e%a5%e4%b8%8b%e6%9d%a5%e5%91%a2%ef%bc%9f%e8%bd%ac%e8%bd%bd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql:SELECT INTO 和 INSERT INTO SELECT 两种表复制语句</title>
		<link>http://qqmaster.info/mysqlselect-into-%e5%92%8c-insert-into-select-%e4%b8%a4%e7%a7%8d%e8%a1%a8%e5%a4%8d%e5%88%b6%e8%af%ad%e5%8f%a5/</link>
		<comments>http://qqmaster.info/mysqlselect-into-%e5%92%8c-insert-into-select-%e4%b8%a4%e7%a7%8d%e8%a1%a8%e5%a4%8d%e5%88%b6%e8%af%ad%e5%8f%a5/#comments</comments>
		<pubDate>Tue, 15 May 2012 12:58:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Learning Record]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=911</guid>
		<description><![CDATA[转载自：http://www.cnblogs.com/freshman0216/archive/2008/08/15/1268316.html Insert是T-sql中常用语句，Insert INTO table(field1,field2,&#8230;) values(value1,value2,&#8230;)这种形式的在应用程序开发中必不可少。但我们在开发、测试过程中，经常会遇到需要表复制的情况，如将一个table1的数据的部分字段复制到table2中，或者将整个table1复制到table2中，这时候我们就要使用SELECT INTO 和 INSERT INTO SELECT 表复制语句了。 1.INSERT INTO SELECT语句 语句形式为：Insert into Table2(field1,field2,&#8230;) select value1,value2,&#8230; from Table1 要求目标表Table2必须存在，由于目标表Table2已经存在，所以我们除了插入源表Table1的字段外，还可以插入常量。示例如下： --1.创建测试表 create TABLE Table1 &#40; a varchar&#40;10&#41;, b varchar&#40;10&#41;, c varchar&#40;10&#41;, CONSTRAINT &#91;PK_Table1&#93; PRIMARY KEY CLUSTERED &#40; a &#8230; <a href="http://qqmaster.info/mysqlselect-into-%e5%92%8c-insert-into-select-%e4%b8%a4%e7%a7%8d%e8%a1%a8%e5%a4%8d%e5%88%b6%e8%af%ad%e5%8f%a5/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F13-php-mysql%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E7%25B1%25BB%2F&from=http%3A%2F%2Fqqmaster.info%2Fmysqlselect-into-%25E5%2592%258C-insert-into-select-%25E4%25B8%25A4%25E7%25A7%258D%25E8%25A1%25A8%25E5%25A4%258D%25E5%2588%25B6%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">13 php mysql数据库类</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F%25E5%2588%25A0%25E9%2599%25A4mysql%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E9%2587%258D%25E5%25A4%258D%25E6%2595%25B0%25E6%258D%25AE%25E5%258F%25AA%25E4%25BF%259D%25E7%2595%2599%25E4%25B8%2580%25E6%259D%25A1%25E6%2595%25B0%25E6%258D%25AE%2F&from=http%3A%2F%2Fqqmaster.info%2Fmysqlselect-into-%25E5%2592%258C-insert-into-select-%25E4%25B8%25A4%25E7%25A7%258D%25E8%25A1%25A8%25E5%25A4%258D%25E5%2588%25B6%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">删除MYSQL数据库重复数据,只保留一条数据</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F&from=http%3A%2F%2Fqqmaster.info%2Fmysqlselect-into-%25E5%2592%258C-insert-into-select-%25E4%25B8%25A4%25E7%25A7%258D%25E8%25A1%25A8%25E5%25A4%258D%25E5%2588%25B6%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php编程：两数相除,如何取商的整数部分?</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp%25E8%25BD%25AC%25E7%25A7%25BB%25E5%25A4%25A7%25E9%2587%258F%25E6%2595%25B0%25E6%258D%25AE%2F&from=http%3A%2F%2Fqqmaster.info%2Fmysqlselect-into-%25E5%2592%258C-insert-into-select-%25E4%25B8%25A4%25E7%25A7%258D%25E8%25A1%25A8%25E5%25A4%258D%25E5%2588%25B6%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP转移大量数据</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>转载自：<a href="http://www.cnblogs.com/freshman0216/archive/2008/08/15/1268316.html">http://www.cnblogs.com/freshman0216/archive/2008/08/15/1268316.html</a><br />
      Insert是T-sql中常用语句，Insert INTO table(field1,field2,&#8230;) values(value1,value2,&#8230;)这种形式的在应用程序开发中必不可少。但我们在开发、测试过程中，经常会遇到需要表复制的情况，如将一个table1的数据的部分字段复制到table2中，或者将整个table1复制到table2中，这时候我们就要使用SELECT INTO 和 INSERT INTO SELECT 表复制语句了。<br />
      1.INSERT INTO SELECT语句<br />
      语句形式为：Insert into Table2(field1,field2,&#8230;) select value1,value2,&#8230; from Table1<br />
      要求目标表Table2必须存在，由于目标表Table2已经存在，所以我们除了插入源表Table1的字段外，还可以插入常量。示例如下：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">--</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">.</span>创建测试表
    create TABLE Table1
    <span style="color: #009900;">&#40;</span>
        a varchar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        b varchar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        c varchar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        CONSTRAINT <span style="color: #009900;">&#91;</span>PK_Table1<span style="color: #009900;">&#93;</span> PRIMARY <span style="color: #990000;">KEY</span> CLUSTERED
        <span style="color: #009900;">&#40;</span>
            a ASC
        <span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#41;</span> ON <span style="color: #009900;">&#91;</span>PRIMARY<span style="color: #009900;">&#93;</span>
&nbsp;
    create TABLE Table2
    <span style="color: #009900;">&#40;</span>
        a varchar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        c varchar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        d int<span style="color: #339933;">,</span>
        CONSTRAINT <span style="color: #009900;">&#91;</span>PK_Table2<span style="color: #009900;">&#93;</span> PRIMARY <span style="color: #990000;">KEY</span> CLUSTERED
        <span style="color: #009900;">&#40;</span>
            a ASC
        <span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#41;</span> ON <span style="color: #009900;">&#91;</span>PRIMARY<span style="color: #009900;">&#93;</span>
    GO
    <span style="color: #339933;">--</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">.</span>创建测试数据
    Insert into Table1 values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'赵'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'asds'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'90'</span><span style="color: #009900;">&#41;</span>
    Insert into Table1 values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'钱'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'asds'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'100'</span><span style="color: #009900;">&#41;</span>
    Insert into Table1 values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'孙'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'asds'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'80'</span><span style="color: #009900;">&#41;</span>
    Insert into Table1 values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'李'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'asds'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
    GO
    select <span style="color: #339933;">*</span> from Table2
&nbsp;
    <span style="color: #339933;">--</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">.</span>INSERT INTO SELECT语句复制表数据
    Insert into Table2<span style="color: #009900;">&#40;</span>a<span style="color: #339933;">,</span> c<span style="color: #339933;">,</span> d<span style="color: #009900;">&#41;</span> select a<span style="color: #339933;">,</span>c<span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span> from Table1
    GO
&nbsp;
    <span style="color: #339933;">--</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">.</span>显示更新后的结果
    select <span style="color: #339933;">*</span> from Table2
    GO
    <span style="color: #339933;">--</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">.</span>删除测试表
    drop TABLE Table1
    drop TABLE Table2</pre></div></div>

<p>  2.SELECT INTO FROM语句<br />
      语句形式为：SELECT vale1, value2 into Table2 from Table1<br />
      要求目标表Table2不存在，因为在插入时会自动创建表Table2，并将Table1中指定字段数据复制到Table2中。示例如下：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">--</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">.</span>创建测试表
    create TABLE Table1
    <span style="color: #009900;">&#40;</span>
        a varchar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        b varchar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        c varchar<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
        CONSTRAINT <span style="color: #009900;">&#91;</span>PK_Table1<span style="color: #009900;">&#93;</span> PRIMARY <span style="color: #990000;">KEY</span> CLUSTERED
        <span style="color: #009900;">&#40;</span>
            a ASC
        <span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#41;</span> ON <span style="color: #009900;">&#91;</span>PRIMARY<span style="color: #009900;">&#93;</span>
    GO
&nbsp;
    <span style="color: #339933;">--</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">.</span>创建测试数据
    Insert into Table1 values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'赵'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'asds'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'90'</span><span style="color: #009900;">&#41;</span>
    Insert into Table1 values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'钱'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'asds'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'100'</span><span style="color: #009900;">&#41;</span>
    Insert into Table1 values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'孙'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'asds'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'80'</span><span style="color: #009900;">&#41;</span>
    Insert into Table1 values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'李'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'asds'</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
    GO
&nbsp;
    <span style="color: #339933;">--</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">.</span>SELECT INTO FROM语句创建表Table2并复制数据
    select a<span style="color: #339933;">,</span>c INTO Table2 from Table1
    GO
&nbsp;
    <span style="color: #339933;">--</span><span style="color: #cc66cc;">4</span><span style="color: #339933;">.</span>显示更新后的结果
    select <span style="color: #339933;">*</span> from Table2
    GO
    <span style="color: #339933;">--</span><span style="color: #cc66cc;">5</span><span style="color: #339933;">.</span>删除测试表
    drop TABLE Table1
    drop TABLE Table2</pre></div></div>

<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F13-php-mysql%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E7%25B1%25BB%2F&from=http%3A%2F%2Fqqmaster.info%2Fmysqlselect-into-%25E5%2592%258C-insert-into-select-%25E4%25B8%25A4%25E7%25A7%258D%25E8%25A1%25A8%25E5%25A4%258D%25E5%2588%25B6%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">13 php mysql数据库类</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F%25E5%2588%25A0%25E9%2599%25A4mysql%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E9%2587%258D%25E5%25A4%258D%25E6%2595%25B0%25E6%258D%25AE%25E5%258F%25AA%25E4%25BF%259D%25E7%2595%2599%25E4%25B8%2580%25E6%259D%25A1%25E6%2595%25B0%25E6%258D%25AE%2F&from=http%3A%2F%2Fqqmaster.info%2Fmysqlselect-into-%25E5%2592%258C-insert-into-select-%25E4%25B8%25A4%25E7%25A7%258D%25E8%25A1%25A8%25E5%25A4%258D%25E5%2588%25B6%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">删除MYSQL数据库重复数据,只保留一条数据</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%259A%25E4%25B8%25A4%25E6%2595%25B0%25E7%259B%25B8%25E9%2599%25A4%25E5%25A6%2582%25E4%25BD%2595%25E5%258F%2596%25E5%2595%2586%25E7%259A%2584%25E6%2595%25B4%25E6%2595%25B0%25E9%2583%25A8%25E5%2588%2586%2F&from=http%3A%2F%2Fqqmaster.info%2Fmysqlselect-into-%25E5%2592%258C-insert-into-select-%25E4%25B8%25A4%25E7%25A7%258D%25E8%25A1%25A8%25E5%25A4%258D%25E5%2588%25B6%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php编程：两数相除,如何取商的整数部分?</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp%25E8%25BD%25AC%25E7%25A7%25BB%25E5%25A4%25A7%25E9%2587%258F%25E6%2595%25B0%25E6%258D%25AE%2F&from=http%3A%2F%2Fqqmaster.info%2Fmysqlselect-into-%25E5%2592%258C-insert-into-select-%25E4%25B8%25A4%25E7%25A7%258D%25E8%25A1%25A8%25E5%25A4%258D%25E5%2588%25B6%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP转移大量数据</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/mysqlselect-into-%e5%92%8c-insert-into-select-%e4%b8%a4%e7%a7%8d%e8%a1%a8%e5%a4%8d%e5%88%b6%e8%af%ad%e5%8f%a5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2012年4月22日 09:02:03</title>
		<link>http://qqmaster.info/2012%e5%b9%b44%e6%9c%8822%e6%97%a5-090203/</link>
		<comments>http://qqmaster.info/2012%e5%b9%b44%e6%9c%8822%e6%97%a5-090203/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 01:09:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Diary]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=905</guid>
		<description><![CDATA[今天是2012年4月22日 09:02:41，已经很久没有写博客了，清明回了趟家，之后又上了两个星期的班。 回趟家之后才感觉到和家里的亲戚朋友们的差距，自己在广州这边每天过着上班下班的日子，生活倒也轻松。 到7月底工作满一年了，生活似乎不再应该这么的平静，但是生活又是必须很平静。 写到这里已经不知道该怎么办了，生活已经到了一个需要去改变的临界点。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="THINKPHP兄弟连李文凯老师视频笔记:09数据库实例化模型" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-09%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B009%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E5%25AE%259E%25E4%25BE%258B%25E5%258C%2596%25E6%25A8%25A1%25E5%259E%258B%2F&from=http%3A%2F%2Fqqmaster.info%2F2012%25E5%25B9%25B44%25E6%259C%258822%25E6%2597%25A5-090203%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">THINKPHP兄弟连李文凯老师视频笔记:09数据库实例化模型</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="jessie-王力宏-青年汇-歌曲杰西-黑人陈建州主持的" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fjessie-%25E7%258E%258B%25E5%258A%259B%25E5%25AE%258F-%25E9%259D%2592%25E5%25B9%25B4%25E6%25B1%2587-%25E9%25BB%2591%25E4%25BA%25BA%25E9%2599%2588%25E5%25BB%25BA%25E5%25B7%259E%25E4%25B8%25BB%25E6%258C%2581%25E7%259A%2584%2F&from=http%3A%2F%2Fqqmaster.info%2F2012%25E5%25B9%25B44%25E6%259C%258822%25E6%2597%25A5-090203%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/06/1831576.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">jessie-王力宏-青年汇-歌曲杰西-黑人陈建州主持的</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="29 precious dogs died in Guangxi, CHINA" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F29-precious-dogs-died-in-guangxi-china%2F&from=http%3A%2F%2Fqqmaster.info%2F2012%25E5%25B9%25B44%25E6%259C%258822%25E6%2597%25A5-090203%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/06/1831604.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">29 precious dogs died in Guangxi, CHINA</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="php100学习记录73-74" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fphp100%25E5%25AD%25A6%25E4%25B9%25A0%25E8%25AE%25B0%25E5%25BD%259573-74%2F&from=http%3A%2F%2Fqqmaster.info%2F2012%25E5%25B9%25B44%25E6%259C%258822%25E6%2597%25A5-090203%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/05/07/7866228.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">php100学习记录73-74</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天是2012年4月22日 09:02:41，已经很久没有写<span class='wp_keywordlink'><a href="http://qqmaster.info" title="博客">博客</a></span>了，清明回了趟家，之后又上了两个星期的班。<br />
回趟家之后才感觉到和家里的亲戚朋友们的差距，自己在广州这边每天过着上班下班的日子，生活倒也轻松。<br />
到7月底工作满一年了，生活似乎不再应该这么的平静，但是生活又是必须很平静。</p>
<p>写到这里已经不知道该怎么办了，生活已经到了一个需要去改变的临界点。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="THINKPHP兄弟连李文凯老师视频笔记:09数据库实例化模型" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-09%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B009%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E5%25AE%259E%25E4%25BE%258B%25E5%258C%2596%25E6%25A8%25A1%25E5%259E%258B%2F&from=http%3A%2F%2Fqqmaster.info%2F2012%25E5%25B9%25B44%25E6%259C%258822%25E6%2597%25A5-090203%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">THINKPHP兄弟连李文凯老师视频笔记:09数据库实例化模型</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="一张很牛B的gif图片《人的一生》" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F%25E4%25B8%2580%25E5%25BC%25A0%25E5%25BE%2588%25E7%2589%259Bb%25E7%259A%2584gif%25E5%259B%25BE%25E7%2589%2587%25E3%2580%258A%25E4%25BA%25BA%25E7%259A%2584%25E4%25B8%2580%25E7%2594%259F%25E3%2580%258B%2F&from=http%3A%2F%2Fqqmaster.info%2F2012%25E5%25B9%25B44%25E6%259C%258822%25E6%2597%25A5-090203%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/06/1831605.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">一张很牛B的gif图片《人的一生》</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="程序员未来之路（转载文章）" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2F%25E7%25A8%258B%25E5%25BA%258F%25E5%2591%2598%25E6%259C%25AA%25E6%259D%25A5%25E4%25B9%258B%25E8%25B7%25AF%25EF%25BC%2588%25E8%25BD%25AC%25E8%25BD%25BD%25E6%2596%2587%25E7%25AB%25A0%25EF%25BC%2589%2F&from=http%3A%2F%2Fqqmaster.info%2F2012%25E5%25B9%25B44%25E6%259C%258822%25E6%2597%25A5-090203%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/20/13401581.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">程序员未来之路（转载文章）</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="jessie-王力宏-青年汇-歌曲杰西-黑人陈建州主持的" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fjessie-%25E7%258E%258B%25E5%258A%259B%25E5%25AE%258F-%25E9%259D%2592%25E5%25B9%25B4%25E6%25B1%2587-%25E9%25BB%2591%25E4%25BA%25BA%25E9%2599%2588%25E5%25BB%25BA%25E5%25B7%259E%25E4%25B8%25BB%25E6%258C%2581%25E7%259A%2584%2F&from=http%3A%2F%2Fqqmaster.info%2F2012%25E5%25B9%25B44%25E6%259C%258822%25E6%2597%25A5-090203%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/01/06/1831576.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">jessie-王力宏-青年汇-歌曲杰西-黑人陈建州主持的</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/2012%e5%b9%b44%e6%9c%8822%e6%97%a5-090203/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>THINKPHP兄弟连李文凯老师视频笔记:16分页和验证码</title>
		<link>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b016%e5%88%86%e9%a1%b5%e5%92%8c%e9%aa%8c%e8%af%81%e7%a0%81/</link>
		<comments>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b016%e5%88%86%e9%a1%b5%e5%92%8c%e9%aa%8c%e8%af%81%e7%a0%81/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 23:53:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Learning Record]]></category>
		<category><![CDATA[sth free by myself]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[兄弟连]]></category>
		<category><![CDATA[李文凯]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=902</guid>
		<description><![CDATA[16分页和验证码 E:\wamp\www\thinkphp\ThinkPHP\Lib\ORG\Util\Image.class.php 使用Import导入 (import(&#8216;ORG.Util.Image&#8217;)) &#60;form action=&#34;__URL__/add&#34; method=&#34;POST&#34;&#62; 用户名&#60;input type=&#34;text&#34; name=&#34;uname&#34;&#62;&#60;br&#62; 密码&#60;input type=&#34;password&#34; name=&#34;upass&#34;&#62;&#60;br&#62; 重复密码&#60;input type=&#34;password&#34; name=&#34;repassword&#34;&#62;&#60;br&#62; 验证码:&#60;input type=&#34;text&#34; name=&#34;verify&#34;&#62;&#60;img src=&#34;__APP__/common/verify&#34; onclick=&#34;show(this)&#34;&#62; &#60;input type=&#34;submit&#34; value=&#34;提交&#34;&#62; &#60;script&#62; function show(obj){ obj.src=&#34;__APP__/common/verify/random/&#34;+Math.random(); } &#60;/script&#62; &#60;/form&#62; &#60;?php class CommonAction extends Action &#123; function verify&#40;&#41;&#123; //导入验证码类 &#8230; <a href="http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b016%e5%88%86%e9%a1%b5%e5%92%8c%e9%aa%8c%e8%af%81%e7%a0%81/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-10%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B010-create%25E6%2596%25B9%25E6%25B3%2595%25E5%2592%258C%25E4%25BB%25A4%25E7%2589%258C%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP 10兄弟连李文凯老师视频笔记,10 create方法和令牌</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-08%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B008%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E6%2593%258D%25E4%25BD%259C%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:08数据库操作</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B013thinkphp%25E4%25B8%25AD%25E7%259A%2584%25E6%259F%25A5%25E8%25AF%25A2%25E8%25AF%25AD%25E8%25A8%2580%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:13thinkphp中的查询语言</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-02-%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B0%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP 02 兄弟连李文凯老师视频笔记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>16分页和验证码<br />
E:\wamp\www\thinkphp\ThinkPHP\Lib\ORG\Util\Image.class.php<br />
使用Import导入 (import(&#8216;ORG.Util.Image&#8217;))</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	&lt;form action=&quot;__URL__/add&quot; method=&quot;POST&quot;&gt;
		用户名&lt;input type=&quot;text&quot; name=&quot;uname&quot;&gt;&lt;br&gt;
		密码&lt;input type=&quot;password&quot; name=&quot;upass&quot;&gt;&lt;br&gt;
		重复密码&lt;input type=&quot;password&quot; name=&quot;repassword&quot;&gt;&lt;br&gt;
		验证码:&lt;input type=&quot;text&quot; name=&quot;verify&quot;&gt;&lt;img src=&quot;__APP__/common/verify&quot; onclick=&quot;show(this)&quot;&gt;
		&lt;input type=&quot;submit&quot; value=&quot;提交&quot;&gt;
		&lt;script&gt;
			function show(obj){
						obj.src=&quot;__APP__/common/verify/random/&quot;+Math.random();
			}
		&lt;/script&gt;
	&lt;/form&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">class</span> CommonAction <span style="color: #000000; font-weight: bold;">extends</span> Action
<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">function</span> verify<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">//导入验证码类	//因为图像处理类并不是系统当中的核心类，因此，我们在使用的时候，他不会自动加载过来。我们需要导入一次</span>
			import<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ORG.Util.Image'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #666666; font-style: italic;">//代表当前项目的LIB文件夹</span>
			<span style="color: #666666; font-style: italic;">//import('@.Org.Image');</span>
			<span style="color: #666666; font-style: italic;">//Image::buildImageVerify(10,5,gif,90,30,'verify');</span>
			Image<span style="color: #339933;">::</span><span style="color: #004000;">GBVerify</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//要引入Srting.class.php,并且复制字体到Util文件夹下</span>
			<span style="color: #666666; font-style: italic;">//length</span>
			<span style="color: #666666; font-style: italic;">//type</span>
			<span style="color: #666666; font-style: italic;">//width</span>
			<span style="color: #666666; font-style: italic;">//height</span>
			<span style="color: #666666; font-style: italic;">//fontface</span>
			<span style="color: #666666; font-style: italic;">//verifyName</span>
&nbsp;
&nbsp;
			<span style="color: #666666; font-style: italic;">//buildImageVerify();</span>
			<span style="color: #666666; font-style: italic;">// simhei.ttf</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//第一个参数为长度 默认为4个长度</span>
			<span style="color: #666666; font-style: italic;">//第二项为模式，类型  0字母 1数字，2大写字母,3为小写字母 4中文,5混合</span>
			<span style="color: #666666; font-style: italic;">//第三个,图像输出的类型 默认为png ，有些同学的服务器上面没有开png的话，请将此处可以直接改</span>
			<span style="color: #666666; font-style: italic;">//第四项，宽度  是根据长度自动计算</span>
			<span style="color: #666666; font-style: italic;">//第五项，高度  22</span>
			<span style="color: #666666; font-style: italic;">// 第六项，验证码保存在session当中的名称，不建议大家修改	</span>
		<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>分页<br />
E:\wamp\www\thinkphp\ThinkPHP\Lib\ORG\Util\Page.class.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
		<span style="color: #000000; font-weight: bold;">function</span> index<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">//多扩展一点点模版方面的知识</span>
			import<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@.Org.Page'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$user</span><span style="color: #339933;">=</span>M<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
			<span style="color: #000088;">$count</span><span style="color: #339933;">=</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$page</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> Page<span style="color: #009900;">&#40;</span><span style="color: #000088;">$count</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #666666; font-style: italic;">/*
			$page-&gt;setConfig('header','个会员');
			$page-&gt;setConfig('prev','上一组会员');
			$page-&gt;setConfig('next','下一组会员');
			$page-&gt;setConfig('first','首页');
			$page-&gt;setConfig('last','尾页');
			*/</span>
			<span style="color: #666666; font-style: italic;">//作业，建议大家把这里自定义分页样式，自己做一个漂亮的出来	</span>
			<span style="color: #666666; font-style: italic;">//  %totalRow%</span>
			<span style="color: #666666; font-style: italic;">//  %header%</span>
			<span style="color: #666666; font-style: italic;">//  %nowPage%</span>
			<span style="color: #666666; font-style: italic;">//  %totalPage%</span>
			<span style="color: #666666; font-style: italic;">//  %upPage%</span>
			<span style="color: #666666; font-style: italic;">//  %downPage%</span>
			<span style="color: #666666; font-style: italic;">//  %first%  last   linkpage   %end%</span>
			<span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setConfig</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'theme'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$show</span><span style="color: #339933;">=</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$list</span><span style="color: #339933;">=</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">field</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'id'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'username'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'createip'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">order</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'id desc'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">limit</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">firstRow</span><span style="color: #339933;">.</span><span style="color: #0000ff;">','</span><span style="color: #339933;">.</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">listRows</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">select</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'thinkphp视频演示'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'alist'</span><span style="color: #339933;">,</span><span style="color: #000088;">$list</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span><span style="color: #000088;">$show</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span></pre></div></div>

<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-10%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B010-create%25E6%2596%25B9%25E6%25B3%2595%25E5%2592%258C%25E4%25BB%25A4%25E7%2589%258C%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP 10兄弟连李文凯老师视频笔记,10 create方法和令牌</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-08%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B008%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E6%2593%258D%25E4%25BD%259C%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:08数据库操作</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B013thinkphp%25E4%25B8%25AD%25E7%259A%2584%25E6%259F%25A5%25E8%25AF%25A2%25E8%25AF%25AD%25E8%25A8%2580%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:13thinkphp中的查询语言</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-02-%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B0%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP 02 兄弟连李文凯老师视频笔记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b016%e5%88%86%e9%a1%b5%e5%92%8c%e9%aa%8c%e8%af%81%e7%a0%81/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>THINKPHP兄弟连李文凯老师视频笔记:15自动完成实现无限分类</title>
		<link>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b015%e8%87%aa%e5%8a%a8%e5%ae%8c%e6%88%90%e5%ae%9e%e7%8e%b0%e6%97%a0%e9%99%90%e5%88%86/</link>
		<comments>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b015%e8%87%aa%e5%8a%a8%e5%ae%8c%e6%88%90%e5%ae%9e%e7%8e%b0%e6%97%a0%e9%99%90%e5%88%86/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 00:12:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Learning Record]]></category>
		<category><![CDATA[sth free by myself]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[兄弟连]]></category>
		<category><![CDATA[李文凯]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=895</guid>
		<description><![CDATA[15自动完成实现无限分类 volist的实用化 数据库的设计以避免需要使用递归 三种方式实现无限分类： 递归 ajax 亲戚关系（使用亲戚关系方式） CREATE TABLE IF NOT EXISTS `think_cate` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` char(30) NOT NULL, `pid` int(11) NOT NULL, `path` varchar(200) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ; &#8230; <a href="http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b015%e8%87%aa%e5%8a%a8%e5%ae%8c%e6%88%90%e5%ae%9e%e7%8e%b0%e6%97%a0%e9%99%90%e5%88%86/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-09%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B009%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E5%25AE%259E%25E4%25BE%258B%25E5%258C%2596%25E6%25A8%25A1%25E5%259E%258B%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:09数据库实例化模型</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B013thinkphp%25E4%25B8%25AD%25E7%259A%2584%25E6%259F%25A5%25E8%25AF%25A2%25E8%25AF%25AD%25E8%25A8%2580%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:13thinkphp中的查询语言</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:16分页和验证码</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-02-%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B0%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP 02 兄弟连李文凯老师视频笔记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>15自动完成实现无限分类<br />
volist的实用化<br />
数据库的设计以避免需要使用递归</p>
<p>三种方式实现无限分类：<br />
递归<br />
ajax<br />
亲戚关系（使用亲戚关系方式）<br />
CREATE TABLE IF NOT EXISTS `think_cate` (<br />
  `id` int(11) NOT NULL AUTO_INCREMENT,<br />
  `name` char(30) NOT NULL,<br />
  `pid` int(11) NOT NULL,<br />
  `path` varchar(200) NOT NULL,<br />
  PRIMARY KEY (`id`)<br />
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;</p>
<p>INSERT INTO `think_cate` (`id`, `name`, `pid`, `path`) VALUES<br />
(1, &#8216;新闻&#8217;, 0, &#8217;0&#8242;),<br />
(2, &#8216;中国新闻&#8217;, 1, &#8217;0-1&#8242;),<br />
(3, &#8216;美国新闻&#8217;, 1, &#8217;0-1&#8242;),<br />
(4, &#8216;北京新闻&#8217;, 2, &#8217;0-1-2&#8242;),<br />
(5, &#8216;华盛顿新闻&#8217;, 3, &#8217;0-1-3&#8242;),<br />
(6, &#8216;海淀新闻&#8217;, 4, &#8217;0-1-2-4&#8242;),<br />
(7, &#8216;上地新闻&#8217;, 6, &#8217;0-1-2-4-6&#8242;),<br />
(8, &#8216;七街新闻&#8217;, 7, &#8217;0-1-2-4-6-7&#8242;),<br />
(9, &#8217;9号楼新闻&#8217;, 8, &#8217;0-1-2-4-6-7-8&#8242;),<br />
(11, &#8216;体育&#8217;, 0, &#8217;0&#8242;);</p>
<p>select id,name,pid,path,concat(path,&#8217;-',id) as bpath<br />
from think_cate<br />
order by bpath<br />
(未解决问题，不能对栏目进行排序，不能三级联动)</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-09%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B009%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593%25E5%25AE%259E%25E4%25BE%258B%25E5%258C%2596%25E6%25A8%25A1%25E5%259E%258B%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:09数据库实例化模型</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B013thinkphp%25E4%25B8%25AD%25E7%259A%2584%25E6%259F%25A5%25E8%25AF%25A2%25E8%25AF%25AD%25E8%25A8%2580%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:13thinkphp中的查询语言</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B016%25E5%2588%2586%25E9%25A1%25B5%25E5%2592%258C%25E9%25AA%258C%25E8%25AF%2581%25E7%25A0%2581%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:16分页和验证码</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-02-%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B0%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP 02 兄弟连李文凯老师视频笔记</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b015%e8%87%aa%e5%8a%a8%e5%ae%8c%e6%88%90%e5%ae%9e%e7%8e%b0%e6%97%a0%e9%99%90%e5%88%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>THINKPHP兄弟连李文凯老师视频笔记:14thinkphp三大自动</title>
		<link>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b014thinkphp%e4%b8%89%e5%a4%a7%e8%87%aa%e5%8a%a8/</link>
		<comments>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b014thinkphp%e4%b8%89%e5%a4%a7%e8%87%aa%e5%8a%a8/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 00:09:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Learning Record]]></category>
		<category><![CDATA[sth free by myself]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[兄弟连]]></category>
		<category><![CDATA[李文凯]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=893</guid>
		<description><![CDATA[14thinkphp三大自动 自动验证（生效时期是action里面create），主要是写在自定义模型 来完成用户输入信息的时候最表单或数据库当中的字段来进行验证 自动完成，不需要用户输入 字段映射，表单字段名和数据库字段名不一致 &#60;?php // 将这些自动映射，完成，验证，加到上次写的用户名或者文章的增删改查当中去。 &#160; // 讲一下，通过自动完成，来做无限级分类 &#160; &#160; class UserModel extends Model&#123; //现在我们就也来开始用这一个自定义模型，而是当时的时机不对。 //自动验证的话，需要根据自己的不同情况来使用。用户名，没有任何人能帮你。只有你根据自己的业务情况来去写 //自动验证的时候，thinkpphp为我们封装的是一个成员属性。在create的时候，内部会去自动找这些自动验证方法。 //来实现验证，如果失败会create失败执行else区间 protected $_validate=array&#40; //下面还需要再写数组。一个数组就是一条验证规则 //array('验证字段','验证规则','错误提示','验证条件','附加规则','验证时间'), //验证字段：需要验证的表单字段名称,也可以表单当中的一些辅助字段,例如验证码，附加码，重复密码等 //验证规则，验证规则必须要结合附加规则一起使用 //错误提示:如果出现错误，抛出一个什么样的错误提示告知用户 //验证条件:0，1，2（） //附加规则： // regex 使肜正则进行验证 可以自己在验证规则当中写一个正则表达示(第一上兄弟连论坛下载高老师的正则视频, //第二，thinkphp功能强劲他为我们封了一些正则,第三，网上已为了准备了一些常用正则) // function 使用函数进行验证，前面验证规则这个地方必须要写函数名time // callback &#8230; <a href="http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b014thinkphp%e4%b8%89%e5%a4%a7%e8%87%aa%e5%8a%a8/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B012%25E7%2594%25A8%25E6%2588%25B7%25E7%259A%2584%25E5%25A2%259E%25E5%2588%25A0%25E6%2594%25B9%25E6%259F%25A5%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B014thinkphp%25E4%25B8%2589%25E5%25A4%25A7%25E8%2587%25AA%25E5%258A%25A8%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:12用户的增删改查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-02-%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B0%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B014thinkphp%25E4%25B8%2589%25E5%25A4%25A7%25E8%2587%25AA%25E5%258A%25A8%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP 02 兄弟连李文凯老师视频笔记</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B013thinkphp%25E4%25B8%25AD%25E7%259A%2584%25E6%259F%25A5%25E8%25AF%25A2%25E8%25AF%25AD%25E8%25A8%2580%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B014thinkphp%25E4%25B8%2589%25E5%25A4%25A7%25E8%2587%25AA%25E5%258A%25A8%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:13thinkphp中的查询语言</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B014thinkphp%25E4%25B8%2589%25E5%25A4%25A7%25E8%2587%25AA%25E5%258A%25A8%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:15自动完成实现无限分类</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>14thinkphp三大自动<br />
自动验证（生效时期是action里面create），主要是写在自定义模型<br />
来完成用户输入信息的时候最表单或数据库当中的字段来进行验证</p>
<p>自动完成，不需要用户输入</p>
<p>字段映射，表单字段名和数据库字段名不一致</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//  将这些自动映射，完成，验证，加到上次写的用户名或者文章的增删改查当中去。</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//   讲一下，通过自动完成，来做无限级分类</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> UserModel <span style="color: #000000; font-weight: bold;">extends</span> Model<span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">//现在我们就也来开始用这一个自定义模型，而是当时的时机不对。</span>
<span style="color: #666666; font-style: italic;">//自动验证的话，需要根据自己的不同情况来使用。用户名，没有任何人能帮你。只有你根据自己的业务情况来去写</span>
<span style="color: #666666; font-style: italic;">//自动验证的时候，thinkpphp为我们封装的是一个成员属性。在create的时候，内部会去自动找这些自动验证方法。</span>
<span style="color: #666666; font-style: italic;">//来实现验证，如果失败会create失败执行else区间</span>
	<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000088;">$_validate</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #666666; font-style: italic;">//下面还需要再写数组。一个数组就是一条验证规则</span>
		<span style="color: #666666; font-style: italic;">//array('验证字段','验证规则','错误提示','验证条件','附加规则','验证时间'),</span>
		<span style="color: #666666; font-style: italic;">//验证字段：需要验证的表单字段名称,也可以表单当中的一些辅助字段,例如验证码，附加码，重复密码等</span>
		<span style="color: #666666; font-style: italic;">//验证规则，验证规则必须要结合附加规则一起使用</span>
		<span style="color: #666666; font-style: italic;">//错误提示:如果出现错误，抛出一个什么样的错误提示告知用户</span>
		<span style="color: #666666; font-style: italic;">//验证条件:0，1，2（）</span>
		<span style="color: #666666; font-style: italic;">//附加规则：</span>
		<span style="color: #666666; font-style: italic;">//       regex 使肜正则进行验证   可以自己在验证规则当中写一个正则表达示(第一上兄弟连论坛下载高老师的正则视频,</span>
		<span style="color: #666666; font-style: italic;">//第二，thinkphp功能强劲他为我们封了一些正则,第三，网上已为了准备了一些常用正则)</span>
		<span style="color: #666666; font-style: italic;">//       function 使用函数进行验证，前面验证规则这个地方必须要写函数名time</span>
		<span style="color: #666666; font-style: italic;">//       callback  是一个回调 他会去找当前UserModel当中的一个成员方法</span>
		<span style="color: #666666; font-style: italic;">//       confirm 验证表单当中的两个字段是否相等。</span>
		<span style="color: #666666; font-style: italic;">//       equal 验主下是否等于某个值</span>
		<span style="color: #666666; font-style: italic;">//		in   是否在某一个范围内 验证规则当中需要写上一个数组</span>
		<span style="color: #666666; font-style: italic;">//       unique 验证是否唯一，系统会要据字段目前的值查询数据库来判断是否有相同的值</span>
		<span style="color: #666666; font-style: italic;">//		</span>
		<span style="color: #666666; font-style: italic;">//      如果用系统内置的一些常用正则，只需要写到错误提示即可，</span>
		<span style="color: #666666; font-style: italic;">//       require 字段必须验证    email验证邮箱   url是验证url地址的   currency货币  number数字</span>
		<span style="color: #666666; font-style: italic;">//  验证时间：   是指数据库操作时间的验证时机</span>
						<span style="color: #666666; font-style: italic;">//  1新增数据的时候进行验证    Model::MODEL_INSERT</span>
						<span style="color: #666666; font-style: italic;">//  2 编辑的时候才进行验证   	Model::MODEL_UPDATE</span>
						<span style="color: #666666; font-style: italic;">//  3 全部情况下验证			Model::MODEL_BOTH</span>
		<span style="color: #666666; font-style: italic;">//</span>
&nbsp;
		<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'uname'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'require'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'用户名必填'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'uname'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'checklen'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'用户名长度过长或过短'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'callback'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'upass'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'require'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'密码必填'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'repassword'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'require'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'重复密码必填'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'upass'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'repassword'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'两次密码不一致'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'confirm'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//你在create方法当来调用自动验证的话$_POST['username']</span>
	<span style="color: #666666; font-style: italic;">// 如果来判断长度的话，我是不是必须要传入一个东西进来。来进行判断。</span>
	<span style="color: #666666; font-style: italic;">//  那怎么知道对还是不对呢？  真或假</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">//它也是thinkphp当中的一个成员方法在create的时候，自动执行</span>
	<span style="color: #666666; font-style: italic;">//array('填充字段','填充内容','填充条件','附加规则');</span>
	<span style="color: #666666; font-style: italic;">//填充字段: 这个字段可以是表单当中的字段，也可以是数据库当中的字段。也可以是一些辅助字段</span>
	<span style="color: #666666; font-style: italic;">//填充内容,配合附加规则一同使用</span>
	<span style="color: #666666; font-style: italic;">//填充条件, 1,2,3 就是Model::MODEL_INSERT   (默认参数为新增的时候进行填充)</span>
	<span style="color: #666666; font-style: italic;">// 附加规则,  function  callback, field（用其它字段来填充），表示此处可以拿到其他字段的一个值</span>
	<span style="color: #666666; font-style: italic;">// string , 字符串来填充。这一项，是thinkphp自动完成里面的默认选项</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000088;">$_auto</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
			<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'password'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'md5'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'function'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
			<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'createip'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'returnip'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'callback'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
			<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'createtime'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'time'</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'function'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
&nbsp;
&nbsp;
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
	<span style="color: #000000; font-weight: bold;">protected</span>  <span style="color: #000088;">$_map</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #666666; font-style: italic;">// 不用写数组啦</span>
		<span style="color: #666666; font-style: italic;">//'是要在表单当中的字段写在前面'=&gt;'是写到后面,数据表当中的真实字段写到后面',</span>
		<span style="color: #0000ff;">'uname'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'username'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'upass'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'password'</span><span style="color: #339933;">,</span>
&nbsp;
&nbsp;
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> returnip<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>	
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> checklen<span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">15</span><span style="color: #339933;">||</span>strlen<span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">QQmaster.info 猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B012%25E7%2594%25A8%25E6%2588%25B7%25E7%259A%2584%25E5%25A2%259E%25E5%2588%25A0%25E6%2594%25B9%25E6%259F%25A5%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B014thinkphp%25E4%25B8%2589%25E5%25A4%25A7%25E8%2587%25AA%25E5%258A%25A8%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:12用户的增删改查</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp-02-%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B0%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B014thinkphp%25E4%25B8%2589%25E5%25A4%25A7%25E8%2587%25AA%25E5%258A%25A8%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP 02 兄弟连李文凯老师视频笔记</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B013thinkphp%25E4%25B8%25AD%25E7%259A%2584%25E6%259F%25A5%25E8%25AF%25A2%25E8%25AF%25AD%25E8%25A8%2580%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B014thinkphp%25E4%25B8%2589%25E5%25A4%25A7%25E8%2587%25AA%25E5%258A%25A8%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:13thinkphp中的查询语言</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B015%25E8%2587%25AA%25E5%258A%25A8%25E5%25AE%258C%25E6%2588%2590%25E5%25AE%259E%25E7%258E%25B0%25E6%2597%25A0%25E9%2599%2590%25E5%2588%2586%2F&from=http%3A%2F%2Fqqmaster.info%2Fthinkphp%25E5%2585%2584%25E5%25BC%259F%25E8%25BF%259E%25E6%259D%258E%25E6%2596%2587%25E5%2587%25AF%25E8%2580%2581%25E5%25B8%2588%25E8%25A7%2586%25E9%25A2%2591%25E7%25AC%2594%25E8%25AE%25B014thinkphp%25E4%25B8%2589%25E5%25A4%25A7%25E8%2587%25AA%25E5%258A%25A8%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">THINKPHP兄弟连李文凯老师视频笔记:15自动完成实现无限分类</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b014thinkphp%e4%b8%89%e5%a4%a7%e8%87%aa%e5%8a%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>THINKPHP兄弟连李文凯老师视频笔记:13thinkphp中的查询语言</title>
		<link>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b013thinkphp%e4%b8%ad%e7%9a%84%e6%9f%a5%e8%af%a2%e8%af%ad%e8%a8%80/</link>
		<comments>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b013thinkphp%e4%b8%ad%e7%9a%84%e6%9f%a5%e8%af%a2%e8%af%ad%e8%a8%80/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 00:05:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Learning Record]]></category>
		<category><![CDATA[sth free by myself]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[兄弟连]]></category>
		<category><![CDATA[李文凯]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=890</guid>
		<description><![CDATA[13thinkphp中的查询语言 普通查询 在查询带入where条件等，最少有三种形式 在普通查询里面还可以使用查询表达示 在此处我会跟大家把查询表达示都讲一次。 EQ 等于(=) NEQ: 不等于(!=) GT 大于(&#62;) EGT 大于等于（&#62;=） LT：小于(&#60;) ELT:小于等于(&#60;=) LIKE 等价于sql like [NOT] BETWEEN 是指SQL里面的BETWEEN 还可以在前加上not [not] in 查询集合 exp 比较特殊，是指使用标准SQL语句，实现更加复杂的情况 $data['id']=array('exp','in(3,9,11)') 因为，如果说 1，字符串形式 'id&#62;5 and id&#60;9 ' 在SQL语句当中写的基本形式也是字符串形式 2，数组形式 $user=M('user'); $data['id']='5'; //它只找出用户名为liwenkai的吧？没有办法让其找出id大于的吧？ $list=$user-&#62;where(array('username'=&#62;'liwenkai'))-&#62;select(); &#8230; <a href="http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b013thinkphp%e4%b8%ad%e7%9a%84%e6%9f%a5%e8%af%a2%e8%af%ad%e8%a8%80/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>13thinkphp中的查询语言</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">	普通查询
		在查询带入where条件等，最少有三种形式
		在普通查询里面还可以使用查询表达示
		在此处我会跟大家把查询表达示都讲一次。
		EQ  等于(=)
		NEQ: 不等于(!=)
		GT 大于(&gt;)
		EGT 大于等于（&gt;=）
		LT：小于(&lt;)
		ELT:小于等于(&lt;=)
		LIKE 等价于sql  like
		[NOT] BETWEEN 是指SQL里面的BETWEEN  还可以在前加上not
		[not] in  查询集合
		exp  比较特殊，是指使用标准SQL语句，实现更加复杂的情况
		$data['id']=array('exp','in(3,9,11)')
		因为，如果说
		1，字符串形式
			'id&gt;5 and id&lt;9  ' 在SQL语句当中写的基本形式也是字符串形式
		2，数组形式
			$user=M('user');
			$data['id']='5';  //它只找出用户名为liwenkai的吧？没有办法让其找出id大于的吧？
			$list=$user-&gt;where(array('username'=&gt;'liwenkai'))-&gt;select();
		3，对象形式
			$user=M('user');
			$a=new stdClass();
			$a-&gt;username='liwenkai';
			$list=$user-&gt;where($a)-&gt;select();
	区间查询
		id&gt;3 and id&lt;10
		$data['id']=array(array('gt',3),array('lt',10));
	组合查询
		$data['username']='liwenkai';
		$data['password']=array('eq','wenkai');
		$data['id']=array('lt',10);
		//where username=liwenkai and  password=wenkai  and id&lt;10 默认的逻辑关系为or的关系
	复合查询
		$data['username']=array('eq','liwenkai');
		$data['password']=array('like','w%');
		$data['_logic']='or';
		$where['_complex']=$where;
		$where['id']=array('lt',5);
		(id&lt;5) and  ( (username='liwenkai') or (password like 'w%') )
	统计查询
		//select count() from
		//$user-&gt;count();   //总数	
		//$user-&gt;max('字段');	//查量大值
		//$user-&gt;min('字段');
		//$user-&gt;avg（'字段'） 平均数	
		//$user-&gt;sum('字段')   和
	定位查询
			getN(advModel)
			last
			first
	SQL查询
			execute()     主要用于更新和写入
			query()       主要用于查询
	动态查询	
上面的各种查询语言实在是太麻烦，主要的和经常用到的是execute() 、query()
数据库事务:
$user= new advModel('user');
$user-&gt;startTrans();
$user-&gt;commit();
$user-&gt;rollback();
&nbsp;
查询锁定\更新锁定
$user-&gt;lock(true)-&gt;where('status=1')-&gt;select();
$user-&gt;lock(true)-&gt;where('status=1')-&gt;data($data)-&gt;save();
&nbsp;
memcached:</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b013thinkphp%e4%b8%ad%e7%9a%84%e6%9f%a5%e8%af%a2%e8%af%ad%e8%a8%80/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>THINKPHP兄弟连李文凯老师视频笔记:12用户的增删改查</title>
		<link>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b012%e7%94%a8%e6%88%b7%e7%9a%84%e5%a2%9e%e5%88%a0%e6%94%b9%e6%9f%a5/</link>
		<comments>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b012%e7%94%a8%e6%88%b7%e7%9a%84%e5%a2%9e%e5%88%a0%e6%94%b9%e6%9f%a5/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 00:04:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Learning Record]]></category>
		<category><![CDATA[sth free by myself]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[thinkphp]]></category>
		<category><![CDATA[兄弟连]]></category>
		<category><![CDATA[李文凯]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://qqmaster.info/?p=888</guid>
		<description><![CDATA[用户的增删改查]]></description>
			<content:encoded><![CDATA[<p>用户的增删改查</p>
]]></content:encoded>
			<wfw:commentRss>http://qqmaster.info/thinkphp%e5%85%84%e5%bc%9f%e8%bf%9e%e6%9d%8e%e6%96%87%e5%87%af%e8%80%81%e5%b8%88%e8%a7%86%e9%a2%91%e7%ac%94%e8%ae%b012%e7%94%a8%e6%88%b7%e7%9a%84%e5%a2%9e%e5%88%a0%e6%94%b9%e6%9f%a5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

