}

$query = 'select * from test';

if($cursor=ora_do($connect,$query)) {

ora_fetch($cursor);
&">

PHP连接数据库的方法(3)

80酷酷网    80kuku.com

  

 

print("insert finished!");

}

$query = 'select * from test';

if($cursor=ora_do($connect,$query)) {

ora_fetch($cursor);

$content0=ora_getcolumn($cursor,0);

$content1=ora_getcolumn($cursor,1);

$content2=ora_getcolumn($cursor,2);

print("$content0");

print("$content1");

print("$content2");

ora_close($cursor);

}

ora_logoff($connection);

}

?>

</body>

</html>















分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: