首页 > 2014年04月14日 > 全部分享
时间:2014年4月13日14:32:08 加入购物车
<?php/***CreatedbyPhpStorm.*User:Administrator*Date:14-4-13*Time:下午2:41*//**购物流程页面:*商城的核心部分*/define(‘ACC‘,true);require(‘./include/init.php‘);//获取地址栏上的动作,判断用户的动作if(!isset($_GET[‘act‘])){$act=‘buy‘;}else{$act=$_GET[‘act‘];}..
分类:其他   时间:2014-04-14 01:10:35    收藏:0  评论:0  赞:0  阅读:446
时间:2014年4月13日16:44:40 订单入库建表
订单表设计:订单对应几条商品:一对多:订单主键,订单号,配送区域,详细地址,邮编,收货人姓名电子邮件地址,电话,手机,标志建筑,最佳送货时间下单时间,订单总金额,支付方式createtableorderinfo(order_idintunsignedauto_incrementprimarykey,order_snchar(15)notnul..
分类:其他   时间:2014-04-14 01:20:25    收藏:0  评论:0  赞:0  阅读:645
时间: 2014年4月13日17:12:34 订单主表的写入
购买东西,产生几个订单,每个订单中商品有几个订单表orderinfo,订单对应商品表ordergoods即之向orderinfo插入一条数据,向ordergoods插入多条数据/*订单入库从表单读取送货地址,等信息,从购物车读取总价格信息写入orderinfo表*/$OI=newOIModel();if(!$OI->_validate($_P..
分类:其他   时间:2014-04-14 01:09:35    收藏:0  评论:0  赞:0  阅读:469
时间:2014年4月13日19:01:06订单商品表写入
在OIModel.class.php增加自动生成订单号功能:/*生成随机订单号*/publicfunctionorderSn(){$sn=‘OI‘.date(‘ymd‘).mt_rand(10000,99999);$sql=‘selectcount(*)from‘.$this->table.‘whereorder_sn=‘."‘".$sn."‘";return$this->db->getOne($sql)?$this->orderSn():$sn..
分类:其他   时间:2014-04-14 01:19:26    收藏:0  评论:0  赞:0  阅读:496
lanmp 架构-mysql原码编译
Mysql源码编译安装1.mysql-5.6.10.tar.gz特别大,虚拟机内存较少时会导致快照崩掉、所以用mysql-5.5.12.tar.gz2.cmake比configure编译过程更详细3.每次运行完都会产生一个缓存文件,再次编译时需删除缓存mysql的官方网站:www.mysql.com4.postfix默认支持mysql-libs,若卸载掉m..
分类:数据库技术   时间:2014-04-14 01:14:31    收藏:0  评论:0  赞:0  阅读:690
时间:2014年4月13日19:01:06 分页类
总条数为:$total每页条数为:$perpage当前页:$page总页数为:$cnt=ceil($total/$perpage)向上取整第$page页,前面已经有$page-1页,每页显示$perpage条已经跳过($page-1)*$perpage条即从($page-1)*$perpage+1开始取,再取出$perpage条分页导航:根据总页数,生成页码:在page..
分类:其他   时间:2014-04-14 01:24:17    收藏:0  评论:0  赞:0  阅读:498
LAMP系列之HTTP服务重要基础概念
HTTP服务重要基础概念1.1http协议超文本传输协议(http,hypertexttransprotocol.)是互联网上使用最广泛的一种网络协议。所有的www都必须遵守这个标准。设计HTTP最初的目的是为了提供一种发布和接受HTML页面的方法。www(worldwideweb),简称为WEB,中文常翻译为“万维网”或“环..
分类:其他   时间:2014-04-14 01:12:35    收藏:0  评论:0  赞:0  阅读:416
lanmp-nginx源码编译
Nginx源码编译安装下载nginx包[root@server79~]#tarzxfnginx-1.4.2.tar.gz[root@server79core]#pwd/root/nginx-1.4.2/src/core[root@server79core]#vimnginx.h#defineNGINX_VER"linux"注释掉gcc编译时的debug[root@server79nginx-1.4.2]#vimauto/cc/gcc#debug#CFLAGS="$CFLAGS-..
分类:其他   时间:2014-04-14 01:16:27    收藏:0  评论:0  赞:0  阅读:585
MariaDB七之双主复制
本文主要讲述如何对MariaDB做双主复制
分类:数据库技术   时间:2014-04-14 01:23:21    收藏:0  评论:0  赞:0  阅读:472
MariaDB八之基于mmm复制
先占个位置,官方文档http://mysql-mmm.org/mmm2:guide
分类:数据库技术   时间:2014-04-14 01:11:36    收藏:0  评论:0  赞:0  阅读:508
2-eggs-100-floors-puzzle(扔两个鸡蛋问题)
本文浅谈了俩个鸡蛋问题...
分类:其他   时间:2014-04-14 04:02:12    收藏:0  评论:0  赞:0  阅读:628
【HackerRank】Red John is Back (Dynamic programming)简单递推
Red John has committed another murder. But this time, he doesn’t leave a red smiley behind. What he leaves behind is a puzzle for Patrick Jane to solve. He also texts Teresa Lisbon that if Patrick is...
分类:其他   时间:2014-04-14 02:26:32    收藏:0  评论:0  赞:0  阅读:474
单链队列
.h文件 #include #include struct node{ int data; struct node * next; }; struct queue{ struct node * front; struct node * rear; }; struct queue * initQueue(); struct queue * enQueue(struct queu...
分类:其他   时间:2014-04-14 04:13:09    收藏:0  评论:0  赞:0  阅读:441
循环队列
.h文件 #include #include struct queue{ int data[MAXQSIZE]; int front; int rear; }; int initQueue(struct queue * q); int enQueue(struct queue * q,int elem); int deQueue(struct queue * q); voi...
分类:其他   时间:2014-04-14 02:25:33    收藏:0  评论:0  赞:0  阅读:474
递归删除所有SVN文件
@echo off SETLOCAL ENABLEDELAYEDEXPANSION set delPath=D:\PathWantToDelete set suffix=.svn for /f %%i in ('dir /s /b /A:H %delPath%') do ( if "%%~xi" == "%suffix%" ( del "%%i\*" /q /a rd "%%...
分类:其他   时间:2014-04-14 02:52:17    收藏:0  评论:0  赞:0  阅读:383
ACM Sdut 2158 Hello World!(数学题,排序) (山东省ACM第一届省赛C题)
山东省第一届ACM省赛C题,数学题,排序...
分类:其他   时间:2014-04-14 04:12:09    收藏:0  评论:0  赞:0  阅读:588
Java 将字节数组转化为16进制的多种方案
很多时候我们需要将字节数组转化为16进制字符串来保存,尤其在很多加密的场景中,例如保存密钥等。因为字节数组,除了写入文件或者以二进制的形式写入数据库以外,无法直接转为为字符串,因为字符串结尾有\0,当然肯定还有其他原因。 下面提供几种Java中使用的方案: 方案一:直接利用BigInteger的方法,应该是最简单的方案了。 /** * 利用签名辅助类,将字符串字节数组 * @pa...
分类:编程语言   时间:2014-04-14 01:33:04    收藏:0  评论:0  赞:0  阅读:490
MongoDB学习之旅十二:MongoDB MapReduce
MongDB的MapReduce相当于MySQL中的“group by”,所以在MongoDB上使用Map/Reduce进行并行“统计”很容易。     使用MapReduce要实现两个函数Map函数和Reduce函数,Map函数调用emit(key,value),遍历collection中的所有记录,将key和value传递给Reduce函数进行处理。Map函数和Reduce函数可以使用JS来...
分类:数据库技术   时间:2014-04-14 01:32:07    收藏:0  评论:0  赞:0  阅读:605
Javascript 实现的StopWatch
Javascript实现的Stopwatch...
分类:编程语言   时间:2014-04-14 02:57:10    收藏:0  评论:0  赞:0  阅读:394
[2010山东ACM省赛] Balloons(搜索)
Balloons Time Limit: 1000ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描述 Both Saya and Kudo like balloons. One day, they heard that in the central park, there will be thousands of peop...
分类:其他   时间:2014-04-14 02:03:37    收藏:0  评论:0  赞:0  阅读:388
882条   上一页 1 ... 29 30 31 32 33 ... 45 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!