09 2013 档案
摘要:步骤一:整合两个的会员数据用软件Navicat 的 "导入向导"功能,导入你的原数据类型(sql,mdb,db)我的是mdb类型。下一步选择你原有的会员字段“user”。再进行下一步 “选择相对应的匹配字段”。导入模式 选择“添加:添加记录到目标”。这样的话,你的ec会员里面就会有你网站的会员了,信息会有ecmail,user_name,password。步骤二: 导入会员数据从Navicat到处会员字段,然后“查找”,“替换” 成一下格式INSERT INTO `yt_users` (email,user_name) VALUES('myjswy@163.com&
阅读全文
摘要:在ecshop的后台新增一个编辑器框步骤一:找到lib_main.php 文件:admin/includes/lib_main.php。找到变量:functioncreate_html_editor(),在它的下面重新新建一个变量create_html_editor2。代码如下function create_html_editor2(inputname,input_value = ''){ global smarty;editor = new FCKeditor(inputname);editor->BasePath = '../includ
阅读全文
摘要:问题描述:提交数据的时候,提交完成。可以在提交的页面不断刷新,从而达到不断提交数据,造成垃圾数据繁多的现象。思路一:设定一个session,每刷新一次页面session自增一次 session++; 当session超过5次,就返回某一个页面,重新提交。同时清楚session 为0; 因此作为一个i额循环if(!isset(SESSION[′h′]))$SESSION[′h′]=1;_SESSION['h']++; if($_SESSION['h']>5){ $_SESSION['h'] =
阅读全文
摘要:用途一:"返回顶部";window.onscroll = function(){ var t = document.documentElement.scrollTop || document.body.scrollTop; var top_div = document.getElementById( "top_div" ); if( t >= 300 ) { top_div.style.display = "inline"; } else { top_div.style.display = "none"; }
阅读全文
摘要:普通css代码.fix_foot{height: 30px; background: #ff0000; position: fixed; bottom: 0px; width: 100%; z-index:10;}ie6兼容代码* html,* html body{background-image:url(about:blank);background-attachment:fixed}* html .fix_foot{position:absolute;left:expression(eval(document.documentElement.scrollLeft));top:express
阅读全文
摘要:一个简单页面的传输index.php无标题文档111查询d.php
阅读全文
摘要:代码:function get_onlineip() { ch=curlinit(′http://iframe.ip138.com/ic.asp′);curlsetopt(ch, CURLOPT_RETURNTRANSFER, true); a=curlexec(ch); preg_match('/(.∗)/', a,ip); return $ip[1]; } 得到的是113.91.122.205
阅读全文