darkfreaks Posted July 11, 2012 Share Posted July 11, 2012 is there a PDO equivalent of this and how would i use it in an example code? Link to comment https://forums.phpfreaks.com/topic/265543-pdo-equivalent-of-mysql_data_seek/ Share on other sites More sharing options...
xyph Posted July 11, 2012 Share Posted July 11, 2012 It's built within fetch http://php.net/manual/en/pdostatement.fetch.php Link to comment https://forums.phpfreaks.com/topic/265543-pdo-equivalent-of-mysql_data_seek/#findComment-1360901 Share on other sites More sharing options...
scootstah Posted July 11, 2012 Share Posted July 11, 2012 You can use PDO::FETCH_ORI_ABS, but unfortunately it's not supported by MySQL. $result = $stmt->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_ABS, [row number]); Link to comment https://forums.phpfreaks.com/topic/265543-pdo-equivalent-of-mysql_data_seek/#findComment-1360908 Share on other sites More sharing options...
xyph Posted July 11, 2012 Share Posted July 11, 2012 The joys of database abstraction. You can only stick to the basic functionality if you actually want to stay abstract. Link to comment https://forums.phpfreaks.com/topic/265543-pdo-equivalent-of-mysql_data_seek/#findComment-1360909 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.