PHP连接数据库的方法(3)
程序员文章站
2022-04-15 08:16:51
...
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);
}
?>
上一篇: PHP入门教程之操作符与控制结构流程详解
下一篇: PHP设计思想之代理模式与读写分离的实践