关于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欢天喜地的说) mysql中的单引号问题 odbc连接Excel2007的问题!!!!!!!!!! 帮忙来看看这样的效果可以做到么? PHPSocket的通讯问题 谁有gd库如何安装啊 一个很奇怪的问题,我的表单的值为什么不能提交过去..... 除了增删改查,你还会些什么 问一个关于PHP事务的问题 【求指导!】在网站中添加实时地图 api返回的josn 数组。。如何循环读取出来。小白在线等 用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)去掉