- 博客(14)
- 资源 (4)
- 收藏
- 关注
原创 smarty
Smarty:1、 自定义函数(自定义标签)1) php文件function定义函数注册步骤(register_function()、register_block())Tpl文件类似于html标签 成对出现---块 …….. 2)当作插件 ./plugins
2011-11-22 21:11:17 312
原创 smarty常用
把smarty下载回来,放在假设smarty解压安装在网站根目录的smarty目录下1.smarty的配置 首先,使用smarty第一件事是先配置好,一般有以下9行代码require_once("smarty/libs/Smarty_class.php"); //把smarty的类定义文件包含进来 $smarty=new smarty();
2011-11-16 21:10:04 332
原创 菜鸟必知smarty写登陆
require("./libs/Smarty.class.php");$tpl=new Smarty;$tpl->template_dir='./templates';$tpl->compile_dir='./templates_c';$tpl->left_delimiter='$tpl->right_delimiter='}>';$tpl->config_dir='con
2011-11-15 20:52:41 516
原创 php+mysql+javascript语句写登陆判断
//打开sessionsession_start();?>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">无标题文档//连接数据库include "../include/dbConn.php";/**该文件的作用是 接收用
2011-11-14 20:46:13 1510
原创 smarty模板简单实例
做smarty一般上网下载一个模板我是下载了一个压缩包, 压缩包—解压--获取其中的---libs文件 写一个配置文件init.inc.phprequire("./libs/Smarty.class.php");$tpl=new Smarty;$tpl->template_dir='./templates';$tpl->compile_dir='./templates_
2011-11-10 20:58:34 1480
原创 php上传图片的代码并保存到数据库
connet.php数据库文件mysql_connect("localhost","root",123)or die("sorry");mysql_select_db("db_user");mysql_query("set names utf8");?> do_photo.php文件 //上传你的头像session_start();if(isset(
2011-11-09 22:12:42 5610
原创 常用在线编辑器的使用
常见在线编辑器有很多,在这就写一个免费编辑器的运用•调用FCKeditor 的两种方法1、通过创建实例来调用 •在 index.php 文件中,调用它的代码,把下面的代码加在需要编辑器的地方 •"disp.php" method="post"> ••//引用FCKeditor.php这个文件,基本的类和数据结构都在这里 •include ("fcke
2011-11-09 22:03:48 559
原创 三级联动方法写地址
写一个连接数据库的文件conn.php在写一个sanji.phpheader("Content-Type:text/html;charset=UTF-8");//连接数据库 include("donn.php"); //根据用户返回的ID查询 $id=$_GET['id']; $sql="select id,name from area where id l
2011-11-08 20:49:27 53201 3
原创 ajax实现异步的简单实例
首先写一个Index.html的文件 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">无标题文档#ajax{margin-left:230px;background:#336633;}#mysql{margin-lef
2011-11-07 20:33:01 537
原创 购物车(3)
shop_car.php购物车页面 session_start();//该页面主要功能:显示购物车内的商品(商品名字、商品数量)echo "您已经选择的商品包括:"?>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">无标题文档
2011-11-07 17:43:36 643
原创 购物车(2)
car1.php 显示生活类物品 ////include("conn.php");//$sql="select * form ";//mysql_query($sql);//////?>-->http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xht
2011-11-07 17:42:12 745
原创 购物车(1)
car.php //从tb_product_type 表获取产品类别信息,显示到首页session_start();//http无状态 //识别用户身份 记录不同页面跳转后的商品情况$_SESSION['username']=$_POST['user'];//记录不同页面跳转后的商品情况//购物车里使用临时存储方式(二维数组)商品的名做元素的下标
2011-11-07 17:39:38 1366
原创 验证码
check_code.php编写图片 class CheckCode { private $image; private $width; private $height; private $codeNum; private $disturbNum; private $checkCode; function __construct($w
2011-11-07 17:36:34 364
原创 实现购物车
购物车的实现1、 实现原理购物车放到01文件夹--------web根文档目录Db_shopping_car--------mysql的data目录下 2、 参考http://www.taobao.com3、 功能1)、商品展示---------相关资料(基本描述、价格、名称、供应商情况、图片)2)、购物车功能 购物车相当于现实中超
2011-11-01 21:02:56 519
中国省市区数据库 三级联动数据库
2012-10-21
世界所有城市国家的数据库
2012-10-21
thinkphp +jquery +Jcrop+ajaxfileupload上传图片并裁剪保存到数据库
2012-09-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人