自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

php_jiang的专栏

世间又有几人傲,枫叶飒飒树飘渺,昂胸塌地目远方,心胸开阔走天道。

  • 博客(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

php接收二进制图片(ios、安卓上传图片)

php接收二进制文件以及图片上传,移动端接口上传。

2015-07-30

中国省市区数据库 三级联动数据库

中国省市区数据库 三级联动数据库 11 北京市 Beijing Shi 110000 bj 0 12 天津市 Tianjin Shi 120000 TJ 0 13 河北省 Hebei Sheng 130000 HE 0 14 山西省 Shanxi Sheng 140000 SX 0 15 内蒙古自治区 Nei Mongol Zizhiqu 150000 NM 0 21 辽宁省 Liaoning Sheng 210000 LN 0

2012-10-21

世界所有城市国家的数据库

世界国家数据库 2 Afghanistan Kandahar 31.61 65.6999969 1015 3 Afghanistan Mazar-e Sharif 36.7069444 67.1122208 369 4 Afghanistan Herat 34.34 62.1899986 927 5 Afghanistan Jalalabad 34.42 70.4499969 573 6 Afghanistan Konduz 36.72 68.8600006 394 7 Afghanistan Ghazni 33.5535554 68.4268875 2175 8 Afghanistan Balkh 36.7586111 66.8961105 328

2012-10-21

thinkphp +jquery +Jcrop+ajaxfileupload上传图片并裁剪保存到数据库

无刷新上传图片并且裁剪然后保存到数据库,运用Jcrop+ajaxfileupload+thinkphp +jquery技术

2012-09-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除