<?php /** * 添加文章 * 2011/8/21 * kcj * */ include "isLogin.php"; include "../FCKeditor/fckeditor.php"; include "../conn/conn.php"; $FCKeditor=new FCKeditor("content"); $FCKeditor->BasePa
<? /** * 验证码 * 2011/8/21 * kcj * */ include "isLogin.php"; //随机生成一个4位数字的验证码 $num=''; for($i=0;$i<4;$i++){ $num.=dechex(rand(0,20)); //dechex函数是十进制转会二
<?php /** * 用户管理 * 2011/8/22 * kcj * * */ include "isLogin.php"; include "../conn/conn.php"; $sql="select * from user"; $rst=mysql_query($sql); $totalnum=mysql_num_rows($rst); $page
SQL:$SQL="delete from `doing` where id in ('1,2,3,4')"; 数据用逗号隔开。 表单: <form action="?action=doing" method="post"> <input name="ID_Dele[]" type="checkbox" id="ID_Dele[
<?php /** * 获得用户的真实IP地址 * * @return string */ function real_ip(){ static $realip = NULL; if ($realip !== NULL){ return $realip; } if (isset($_SE
<?php /** *图片管理 * 2011/8/20 * kcj * */ include "isLogin.php"; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> &
<? /** * 无限分类 * 2011/8/24 * kcj * */ include "../conn/conn.php"; $flpid=$_POST['flpid']; $fltitle=$_POST['title']; $fldes=$_POST['des']; if(isset($_POST['ac
<? /** * 无限分类 * 2011/8/23 * kcj * */ include "../conn/conn.php"; $flpid=$_POST['flpid']; $fltitle=$_POST['title']; $fldes=$_POST['des']; if(isset($_POST['ac
<?php /* * class mysql * 2011/8/25 * kcj */ class mysql{ private $host; private $name; private $pass; private $table; private $ut; function _
<?php /** * 2011/8/24 * 一个很不错的分页类,拿出来给大家分享 * * */ class SubPages{ private $each_disNums;//每页显示的条目数 private $nums;//总条目数
<?php /** * 分页类 * 2011/8/31 * kcj * */ class Page{ private $total; //查询总的数据记录 private $page; //当前第几页 //private $pagesize; //每页显示的条数 p
<?php /** * 数据库操作类 * 2011/8/25 * kcj * */ class MyDB { private $db_host; //数据库主机名 private $db_user; //数据库用户名 private $db_pwd; //数据库
<?php /** * 文章 * 2011/9/21 * kcj * */ include "isLogin.php"; include "../conn/config.inc.php"; include_once("../FCKeditor/fckeditor.php"); $oFCKeditor = new FCKeditor("content") ;
<?php /** * 文件上传类 * 2011/9/22 * kcj * */ class UpFile{ private $filePath; //文件目的路径 private $fileField; //默认
jQuery 是一个优秀的 Javascript 框架,对 js 进行了优秀的包装,提供了许多方便的功能。jQuery 对 ajax 的包装也堪称优秀。 jQuery 可以以 json 文件传输协议来传输数据(类似 xml,而且大有取代 xml 的趋势),而网
大家也许都对PHP已经不再陌生,那么对于JSON的了解又如何呢?今天我们就向大家简要的介绍PHP使用JSON的具体编码,希望本文内容对又需要的朋友有所帮助。 互联网的今天,AJAX已经不是什么陌生的词汇了。说起AJAX,可
<?php //php判断客户端是否为手机 $agent = $_SERVER['HTTP_USER_AGENT']; if(strpos($agent,"NetFront") || strpos($agent,"iPhone") || strpos($agent,"MIDP-2.0") || strpos($agent,"Opera Mini")
1. PHP可阅读随机字符串 此代码将创建一个可阅读的字符串,使其更接近词典中的单词,实用且具有密码验证功能。 /************** *@length - length of random string (must be a multiple of 2)
//index.php 页面 $incpeizhi="inc.peizhi.php"; $arr=array('mark_h','mark_w','mark_name','mark_url','mark_type'); extract($_POST); echo $mark_name; echo &qu
<?php class Image { private $path; //构造方法用来对图片所在位置进行初使化 function __construct($path="./"){ $this->path=rtrim($path, "/")."/";
$flag=$_POST['flag']; $sosoval=$_POST['keyword']; $sosoquery="where 1=1 "; if(!emptyempty($sosoval)&&$flag!=='-1'){ //$sosoquery.="and (title like '%$sosoval%'
//数据库表 <?php include "comm.php"; //获取分类菜单 $arr=getTree(); $arrone=getFlone(59); $arrtwo=getFltwo(93); $arrmenu=getFlmenu(59); print_r($arrmenu); //获取分类树 function
第一:break语句通常用在循环语句和开关语句中,当break语句用于do-while、for、while循环语句中时,可使程序终止循环而执行循环后面的语句, 通常break语句总是与if语句联在一起,即满足条件时便跳出循环。 例如: main(
<?php require "comm.php"; if(isset($_POST['submit'])){ $title=$_POST['title']; $content=$_POST['content']; $addtime=time(); $sql="insert into news (titl
<?php /** * 投票调查 * * * */ include "isLogin.php"; include "../conn/config.inc.php"; /*action操作初始化*/ if(emptyempty($_REQUEST['action'])){ $_REQUEST['action']=&
2024-04-16
2022-01-28
2022-03-26
2014-05-30
2022-05-25
2022-01-18
2022-07-14
2022-10-04
2022-05-30
2022-03-24