![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php+mysql
文大海
这个作者很懒,什么都没留下…
展开
-
php织梦读取新闻相关
调取ID为16 标题长度为40 简介长度为50 降序desc(升序asc)的第一条( 第2到5条为limit=’1,4’ ) {dede:arclist typeid='16' titlelen='40' infolen='50' orderway='desc' limit='0,1' } <img src="[field:picname/]" width="158原创 2017-12-01 16:15:07 · 274 阅读 · 0 评论 -
php根据时间调用不同商务通js
<?php $starttime = mktime(02,00,00); $endtime = mktime(22,00,00); ?> <?php if(time() > $starttime && time() < $endtime){ ?> <script language="javascript" src="http://awt.zoossoft.com/JS/LsJS.aspx?sit原创 2017-12-01 15:56:28 · 420 阅读 · 0 评论 -
织梦读取数据库几个用法
调取ID为16 标题长度为40 简介长度为50 降序desc(升序asc)的第一条( 第2到5条为limit=’1,4’ ) {dede:arclist typeid='16' titlelen='40' infolen='50' orderway='desc' limit='0,1' } <img src="[field:picname/]" width="158"原创 2017-12-01 16:03:35 · 1370 阅读 · 0 评论 -
php获取客服端口IP 以及物理地址 网络
<?php function getIP() { static $realip; if (isset($_SERVER)){ if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])){ $realip = $_SERVER["HTTP_X_FORWARDED_FOR"]; } else if (原创 2017-12-02 16:30:20 · 1532 阅读 · 0 评论 -
织梦自定义表单来源地址网络 自定义函数
前台需要 getCity() 直接获取来源地址 以及网络 if ( ! function_exists('getCity')) { function getCity() { static $a_country; $iiip=GetIP(); $taobao = 'http://ip.taobao.com/service/getIpInfo.php?ip='; $url = $t原创 2017-12-02 17:35:26 · 1139 阅读 · 0 评论 -
输出表
第一种 <?php require_once(dirname(__FILE__)."/config.php"); CheckPurview('spec_New'); require_once(DEDEINC."/datalistcp.class.php"); setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/"); header("Cont原创 2018-01-03 15:04:30 · 382 阅读 · 0 评论