04 2012 档案
摘要:show databasesshow tablesinformation_schemashow tables 语句的输出不包含temporary表查看服务器所有数据库>show databases查看给定数据库的 create database语句>show create database db_name查看默认数据库的数据表或给定数据库的数据表>show tables>show tables from db_name查看给定数据库的数据表的create table语句>show create table tbl_name查看数据表里的列或索引信息>show
阅读全文
摘要:using System;using System.Data;using System.Data.SqlClient;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class _Default : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { string constring = "data so
阅读全文
摘要:smary文件配置步骤//步骤1require '/libs/Smarty.class.php';//步骤2$smarty = new Smarty;//步骤3/*$smarty->template_dir = "";$smarty->compile_dir = "";$smarty->cache_dir = "";$smarty->caching = 1;$smarty->cache_lifetime = 60*60;//秒,这里的值是一个小时$smarty->left_delim
阅读全文
摘要:【创建xml】$dom=new DOMDocument("1.0");$book=$dom->appendChild($dom->createElement('book'));//创建根元素$title=$book->appendChild($dom->createElement('title'));//在根元素下创建节点$title->appendChild($dom->createTextNode('php cookbook'));//在节点下创建子节点$title->setAtt
阅读全文
摘要:/*date()函数年 Yy月m 数字表示2位n 数字表示无前导0F 月份字母全拼M 3个字母缩写日d 日期2个数字表示j 日期数字表示无前导0S 日期的序数后缀l 星期几字母全拼表示D 星期几的3字母表示w 星期几的数字表示,周日=0周六=6小时h 12小时两位g 12小时H 24小时两位 G 24小时a am/pmA AM/PM0分i 两位数字表示j 同上无前导0秒s 两位数字表示Z完整日期crU*/$time=time();$formats=array('ymd','YMD','yls');foreach($formats as $form
阅读全文