怎么没有人呀,,大家看看吧,<?php
header("content-Type: text/html; charset=gb2312");
putenv("ORACLE_SID=lxtest");
putenv("ORACLE_HOME=/u04/app/oracle/product/8.1.7");
$handle = ora_plogon("test","test","lxtest") or die;
$cursor = ora_open($handle);
ora_commitoff($handle);
$query = "SELECT * FROM cd";
ora_parse($cursor, $query) or die;
ora_exec($cursor);echo "<HTML><PRE>\n";
echo "$query\n\n";
$numcols = 0;
while(ora_fetch($cursor)) {
$numcols = ora_numcols($cursor);
for ($column=0; $column < $numcols; $column++) {
$data = trim(ora_getcolumn($cursor, $column));
if($data == "") $data = "NULL";
echo "$data\t";
}
echo "\n";
}
$numrows = ora_numrows($cursor);
echo "\nROWS RETURNED: $numrows\n";
echo "</PRE></HTML>\n";ora_close($cursor);?>
header("content-Type: text/html; charset=gb2312");
putenv("ORACLE_SID=lxtest");
putenv("ORACLE_HOME=/u04/app/oracle/product/8.1.7");
$handle = ora_plogon("test","test","lxtest") or die;
$cursor = ora_open($handle);
ora_commitoff($handle);
$query = "SELECT * FROM cd";
ora_parse($cursor, $query) or die;
ora_exec($cursor);echo "<HTML><PRE>\n";
echo "$query\n\n";
$numcols = 0;
while(ora_fetch($cursor)) {
$numcols = ora_numcols($cursor);
for ($column=0; $column < $numcols; $column++) {
$data = trim(ora_getcolumn($cursor, $column));
if($data == "") $data = "NULL";
echo "$data\t";
}
echo "\n";
}
$numrows = ora_numrows($cursor);
echo "\nROWS RETURNED: $numrows\n";
echo "</PRE></HTML>\n";ora_close($cursor);?>
解决方案 »
- php拆分汉字的问题!
- 怎么通过apache日志统计pv uv请高手帮帮忙
- JpGraph中文乱码完美解决方案
- 页面导出word问题
- php如何做充值接口,给个提示(有偿求助),谢谢
- PHP一个数组问题,看似简单,不是高手不要来啊,嘿嘿!
- js高手都来:数组生成无限级目录树,只差一个算法即可和CSDN完全一样!
- 毕设紧急求救,一个翻页的问题
- 求教:网站文章系统怎么做?!!!
- 关于树形结构,如何实现无限级的目录结构,就像资源管理器一样!谢谢各位,一定有分!
- php一在服务器上运行,就弹出一个安全登陆的对话框,让我输用户名和密码,而放在该目录下的ASP文件却是好的?
- 网页之间不能传递变量 为什么?
OCIExecute($stmt);
OCIFreeStatement($stmt);
OCILogOff($conn); 这是我在 ce.cn 写的程序,已经成功使用.你试试.用 OCI 的函数写的.没有用 ORA