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

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

WBOY
WBOYOriginal
2016-06-13 11:10:271015browse

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'];
Statement:
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