2016年11月4日

php 分页类(3)

摘要: <?php class Page { private $total; //总记录 private $pagesize; //每页显示多少条 private $limit; //limit private $page; //当前页码 private $pagenum; //总页码 private $u 阅读全文

posted @ 2016-11-04 17:40 jiageng 阅读(204) 评论(0) 推荐(0) 编辑

php 分页类(2)

摘要: <?phpinclude("connection.php");$perNumber=10; //每页显示的记录数$page=$_GET['page']; //获得当前的页面值$count=mysql_query("select count(*) from user"); //获得记录总数$rs=my 阅读全文

posted @ 2016-11-04 16:23 jiageng 阅读(185) 评论(0) 推荐(0) 编辑

php 分页类(1)

摘要: inter.php <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> 分页演示 </title> <link href="pager.css" type="text/css" re 阅读全文

posted @ 2016-11-04 16:01 jiageng 阅读(200) 评论(0) 推荐(0) 编辑

php fsockopen例子

摘要: <?php /* * 短信相关api */ class Webcall { protected $VCC_CODE; //api的账号 protected $password; //api的密码 protected $api_url; //api的地址 /* * 设置api相关参数 * */ pub 阅读全文

posted @ 2016-11-04 13:41 jiageng 阅读(254) 评论(0) 推荐(0) 编辑

php 验证类

摘要: <?php /** * 验证类 * * @lastmodify 2014-5-16 * @author jy625 */ class VerifyAction{ /** * 是否为空值 */ public static function isEmpty($str){ $str = trim($str 阅读全文

posted @ 2016-11-04 11:29 jiageng 阅读(269) 评论(0) 推荐(0) 编辑

php 生成json格式的数据

摘要: 放到引入的公共函数里边 if (!function_exists('format_json')) { /** * 格式化API输出的json * @param $return_code string 返回的状态码 * @param $data array 要返回的数据 * @param $error 阅读全文

posted @ 2016-11-04 11:02 jiageng 阅读(4393) 评论(0) 推荐(0) 编辑

导航