TypechoJoeTheme

Dcr163的博客

统计

最新文章

2015-10-18

php ODP预处理机制笔记

php ODP预处理机制笔记
//php 预处理机制header('content-type:text/html;charset=utf-8');$pdo=new PDO("mysql:host=localhost;dbname=blong","root","root"); $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE,PDO::FETCH_ASSOC); $pdo->exec("set names utf8"); /* $sql="delete from v9_yuyue where id=?";$arr=arry(1,3,4,5);foreach($arr as $val){$obj=$pdo->prepare($sql);$obj->bindValue(1,$val);} */$sql2="insert into v9_yuyue(name,sex,age,content) v...
2015-10-18

日志

2,151 阅读
0 评论
2015年10月18日
2,151 阅读
0 评论
2015-10-18

PHP面向对象 __construct方法使用

PHP面向对象 __construct方法使用
// 构造方法,在new一个对象的时候,就会立刻自动调用__construct()这个函数class Humen{public $name;public $age; function __construct($name,$age){$this->name=$name;$this->age=$age;} function say(){echo "我叫{$this->name},我今年{$this->age}岁了!!<br/>";} }$a=new Humen('小红','44');$a->say();$b=new Humen('小明','18');$b->say();
2015-10-18

日志

2,089 阅读
0 评论
2015年10月18日
2,089 阅读
0 评论
2015-10-18

phpcms v9 如何在列表页和内容页调用子栏目的目录

phpcms v9 如何在列表页和内容页调用子栏目的目录
首先我们知道,每一个栏目都会有这样的三个文件,它们分别是栏目页category.html,列表页list.html,和内容页show.html 具体调用子栏目目录名的方法是: 在栏目首页(category.html)用下面的标签代码进行调用: {loop subcat($catid) $r}<a href="{$r[url]}" title="{$r[catname]}">{$r[catname]}</a>{/loop} 在列表页(list.html)和内容页(show.html)用下面的标签代码进行调用: {loop subcat($catid) $r}<a href="{$CATEGORYS[$r[catid]][url]}">{$CATEGORYS[$r[catid]][catname]}</a>{/loop} 注:上面的{loop subcat($catid) $r} 里面的$catid换上父栏目的ID号。
2015-10-18

日志

2,042 阅读
0 评论
2015年10月18日
2,042 阅读
0 评论
2015-10-18

JS_常见事件 举例 笔记

JS_常见事件 举例 笔记
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"><head><title>JS_事件</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script type="text/javascript">    function t1(){        document.getElementsByT...
2015-10-18

日志

2,146 阅读
0 评论
2015年10月18日
2,146 阅读
0 评论

人生倒计时

今日已经过去小时
这周已经过去天
本月已经过去天
今年已经过去个月

最新回复

  1. blowjob
    2026-07-19
  2. バイナリー 取引ツール
    2026-07-11
  3. http://www.annunciogratis.net/author/oevsandra54
    2026-05-31
  4. web page
    2026-04-10
  5. plenty of insightful
    2026-03-19

标签云