关于oracle数据库查询结果是否为空的判断??? 1.if(($result=OCIExcute($stmt))!="")2.OCIFetchStatement($stmt,$array) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 OCIColumnIsNULL -- Test whether a result column is NULL 谢谢两位!!!to:yuepengfei(刁馋)提示以下错误:Warning: OCIStmtExecute: ORA-00936: missing expression Fatal error: Call to undefined function: ociexcute() 请问$result是什么?我的意图是:如果查询结果为空,则输出一个提示页面,若不为空,则继续该页面执行to:calljia(边缘游走)您的意思是if(OCIColumnIsNULL($stmt)==NULL)? 不好意思,ociexecute()被写成了ociexcute() $result是指语句执行结果你也可以通过ocinumrows来做(不知道这次单词写错没有:p) TO:calljia(边缘游走)你的办法可行,可是,不管是那种结果,页面总出现下面的两个Warning,怎么将它们去掉呢Warning: OCIStmtExecute: ORA-00936: missing expression Warning: Wrong parameter count for ocicolumnisnull() 哈哈,再次感谢!!鞠躬!!TO:yuepengfei(刁馋)可以实现,可是一样出现上面的两个Warning,该怎么办呢??是我其它什么地方写错了吗? $query="select f_num from gg where rep_date=to_date($date1,'yyyymm')"; $stmt=ociparse($db_connected,$query); ociexecute($stmt);if(($result=OCIExecute($stmt))==""){ echo'<head>'; echo"<meta http-equiv=\"content-Type\" content=\"text/html; charset=gb2312\">"; echo"<link rel=\"stylesheet\" href=\"baobiao.css\" type=\"text/css\">"; echo'</head>'; echo"<body bgcolor='#DEE2DE'>"; echo('<p> </p><font size=2><center>对不起,报表已经录入过,您不能重复录入!</center></font>'); echo'</body>'; ocifreestatement($stmt); ocilogoff($db_connected); exit;}else{ ocifreestatement($stmt); ocilogoff($db_connected);}谢谢!!! 不,是出现Warning: OCIStmtExecute: ORA-00936: missing expression ociexecute($stmt);if(($result=OCIExecute($stmt))=="")把上面的那个ociexecute($stmt)去掉 谢了,结帖!(leexhy欢天喜地的说) 第一次做网站,关于网站构造方面想请教下 用smarty的一个关于登录的问题,纠结、、、 PHP的秒杀活动 怎么用SESSION一次性实现某文件夹下所有页面不能被直接访问,只能通过验证后浏览和操作! 身份证号码的转换(急)在线等 JS可以取得下面的客户端信息么?50分 高手们 这是什么意思啊 $time=date("Y-m-d H:i:s")-300;300是减在年上,怎么让它减在秒上啊? 看了版主的无限分类,分成树形结构后,如何还原 php下载图片 用php对一个txt文件写入的问题? 并发性问题??
提示以下错误:
Warning: OCIStmtExecute: ORA-00936: missing expression
Fatal error: Call to undefined function: ociexcute() 请问$result是什么?
我的意图是:如果查询结果为空,则输出一个提示页面,若不为空,
则继续该页面执行
to:calljia(边缘游走)
您的意思是if(OCIColumnIsNULL($stmt)==NULL)?
$result是指语句执行结果
你也可以通过ocinumrows来做(不知道这次单词写错没有:p)
页面总出现下面的两个Warning,怎么将它们去掉呢Warning: OCIStmtExecute: ORA-00936: missing expression
Warning: Wrong parameter count for ocicolumnisnull()
是我其它什么地方写错了吗?
$stmt=ociparse($db_connected,$query);
ociexecute($stmt);
if(($result=OCIExecute($stmt))=="")
{
echo'<head>';
echo"<meta http-equiv=\"content-Type\" content=\"text/html; charset=gb2312\">";
echo"<link rel=\"stylesheet\" href=\"baobiao.css\" type=\"text/css\">";
echo'</head>';
echo"<body bgcolor='#DEE2DE'>";
echo('<p> </p><font size=2><center>对不起,报表已经录入过,您不能重复录入!</center></font>');
echo'</body>';
ocifreestatement($stmt);
ocilogoff($db_connected);
exit;
}
else
{
ocifreestatement($stmt);
ocilogoff($db_connected);
}谢谢!!!
if(($result=OCIExecute($stmt))=="")把上面的那个ociexecute($stmt)去掉