最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP mysql_data_seek() 函数教程
时间:2008-11-25 编辑:简简单单 来源:一聚教程网
PHP mysql_data_seek() 函数教程
定义和用法
该mysql_data_seek ( )函数移动内部行指针。
连续的内部指针是目前排在返回结果的mysql_query ( )函数。
此函数返回TRUE成功,或FALSE的失败。
语法
mysql_data_seek(data,row)
参数
data: 从mysql_query数据库查询
rows:查出多少行.
现在我们来看个mysql_data_seek的实例吧.
$sql = "SELECT * from Person"; $result = mysql_query($sql,$con); print_r(mysql_fetch_row($result));mysql_data_seek($result,3); print_r(mysql_fetch_row($result));?>输出的结果.Array ( [0] => Refsnes [1] => Kai Jim [2] => Taugata )Array ( [0] => Refsnes [1] => Ståle [2] => Sandnes )
相关文章
- php中mysql_fetch_array()和mysql_fetch_rows()函数区别 04-09
- PHP mysql_field_type()函数 06-08
- php mysql_real_escape_string()函数 05-26
- PHP操作MySQL的函数 01-11
- PHP导出数据超时的优化建议解读 10-31
- PHP之mysql位运算解析 10-31