先分别创建三张表:think_user think_group think_user_groupuser 表里有id、name字段group 表里有id、groupName字段user_group 表里有uid、gid字段user_group 表里的uid、gid字段都作为主键然后建立一个Model... Read More
posted @ 2015-10-05 11:11 哟风 Views(316) Comments(0) Diggs(0) Edit
array_merge() 函数把两个或多个数组合并为一个数组。如果键名有重复,该键的键值为最后一个键名对应的值(后面的覆盖前面的)。如果数组是数字索引的,则键名会以连续方式重新索引。注释:如果仅仅向 array_merge() 函数输入了一个数组,且键名是整数,则该函数将返回带有整数键名的新数组,... Read More
posted @ 2015-10-04 11:30 哟风 Views(440) Comments(0) Diggs(0) Edit
session_unset()释放当前在内存中已经创建的所有$_SESSION变量,但不删除session文件以及不释放对应的session idsession_destroy()删除当前用户对应的session文件以及释放session id,内存中的$_SESSION变量内容依然保留因此,释放用... Read More
posted @ 2015-10-03 18:28 哟风 Views(166) Comments(0) Diggs(0) Edit
1 protected $_link = array( 2 'User'=>array( //'User'代表1对N中的1的表名 3 'mapping_type'=>BELONGS_TO, //关联类型 4 ... Read More
posted @ 2015-09-19 11:58 哟风 Views(149) Comments(0) Diggs(0) Edit
1 public function test(){ 2 $m=M('Message'); 3 4 import('ORG.Util.Page');// 导入分页类 5 $count = $m->count();// 查... Read More
posted @ 2015-09-19 11:47 哟风 Views(7373) Comments(0) Diggs(0) Edit
posted @ 2015-09-18 17:30 哟风 Views(142) Comments(0) Diggs(0) Edit
posted @ 2015-09-18 16:49 哟风 Views(706) Comments(0) Diggs(0) Edit
register.html 文件代码: Register 用 户 名 : 密 码 : 确认密码 : 性 别 : 男 女验 证 码 : RegisterAction.class.php文件代码:display(); } public function check... Read More
posted @ 2015-09-12 17:48 哟风 Views(2078) Comments(0) Diggs(0) Edit
Login 用户名 : 密 码 : 验证码 : Read More
posted @ 2015-09-11 23:00 哟风 Views(2364) Comments(0) Diggs(0) Edit
1 2 3 4 5 CSS3 input输入框蓝光特效 - 代码笔记 www.198zone.com 6 23 24 25 26 27 28 29 30 31 32 33 Read More
posted @ 2015-08-30 20:07 哟风 Views(128) Comments(0) Diggs(0) Edit