Home > Backend Development > PHP Tutorial > DEDECMS没法>GetOne()无法调用了什么情况

DEDECMS没法>GetOne()无法调用了什么情况

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:10:27
Original
1112 people have browsed it

DEDECMS无法>GetOne()无法调用了什么情况
header("cache-control:no-cache,must-revalidate"); 
header('Content-Type: text/html; charset=gbk'); 

    //print_r($arr);  
require_once(dirname(__file__).'/../include/common.inc.php');
$ip=$_SERVER["REMOTE_ADDR"];
SetCookie("ip","$ip");
$ip==isset($_COOKIE['ip']);
$sql2="select * from dede_diyform2 where ip='$ip'";
$row=$dsql->GetOne($sql2);
echo $row['num'];
num是一个字段无法输出


------解决方案--------------------
$row=$dsql->GetOne($sql2);
var_dump($row);//輸出一下看看
echo $row['num'];
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template