example_PHP流程管理
2016-05-01 20:42
525 查看
login.html
View Code
<?php $ids = $_GET['ids']; include('../../Public/Connect.class.php'); $con = new Connect(); $s1 = "update userflow set ToWhere = ToWhere+1 where Ids = '{$ids}'"; $con->Query_string($s1,0); //找到流程代号 $s2 = "select Code,ToWhere from userflow where Ids = '{$ids}'"; $arr = $con->Query_array($s2); $code = $arr[0][0]; $where = $arr[0][1]; //根据流程代号查节点个数 $s3 = "select count(*) from flowpath where Code = '{$code}'"; $num = $con->Query_string($s3); if($where>=$num) { $s4 = "update userflow set IsOK = true where Ids = '{$ids}'"; $con->Query_string($s4,0); } header("location:ChuLi.php"); ?>
View Code
相关文章推荐
- php实现扫码支付
- 利用PHP绘图函数实现简单验证码功能
- laravel5分钟完成登录注册
- PHP获取当前时间、时间戳的各种格式写法汇总[日期时间]
- php静态方法
- ThinkPHP3.2的Excel导入
- phpMyAdmin配置与安装
- vsftpd基于pam虚拟用户认证,还怕泄漏账号么?
- PHP学习记录第一篇:Ubuntu14.04下LAMP环境的搭建
- thinkphp 设置跨域请求
- PHP关于Ajax返回多个json数据的处理
- 【1】引用计数基本知识
- JetBrains PhpStorm 所有版本通用注册码
- PHP基础之进制的转换
- PHP (sendmail / PHPMailer / ezcMailComposer)发送邮件
- 配置FTP服务器——passive mode
- ubuntu 16.04 php 开发环境搭建
- PHP数据库拓展之PDO使用总结
- PHP中define()和dirname(__FILE__)
- php 操作数组array_merge使用时数组包含数字键名的问题解决方法