脚踏实地、勇往直前!
全部博文(1005)
发布时间:2013-01-10 19:59:00
环境: OS:ORACLE 10GR2 PHP5 在网上到处搜索到了一个比较好的分页例子,适当做了修改. <?php $page=isset($_GET['page'])?intval($_GET['page']):1; $display_rows = 5; $OracleDBConn = OCILogon("hxl","hxl","hxl"); $sql_count = "select count(*) from scott.emp"; $row_count=......【阅读全文】
发布时间:2013-01-01 23:25:23
1.获取表数据01 <?php mysql_connect("localhost","dev","mysql"); mysql_select_db("dev"); $result=mysql_query("select id,name from tb_test"); while($row=mysql_fetch_array($result,MYSQL_ASSOC)){ print_r($row);echo "<br/>\n"; }?> 输出结果如下: ......【阅读全文】