note 103714 added to function.mysql-result

From: Date: Fri, 29 Apr 2011 13:30:02 +0000
Subject: note 103714 added to function.mysql-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-179271@lists.php.net to get a copy of this message
The warning against mixing the use of mysql_result with other result set functions is a bit generic. More specifically, mysql_result alters the result set's internal row pointer (at least in a LAMP environment). This is anything but obvious as the nature of the function is random access for grabbing a quick byte. Using mysql_data_seek after some mysql_result calls, before going into a mysql_fetch_array loop, will set things straight. ---- Server IP: 208.69.120.55 Probable Submitter: 68.115.89.208 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-result.php Edit -- https://master.php.net/note/edit/103714 Del: integrated -- https://master.php.net/note/delete/103714/integrated Del: useless -- https://master.php.net/note/delete/103714/useless Del: bad code -- https://master.php.net/note/delete/103714/bad+code Del: spam -- https://master.php.net/note/delete/103714/spam Del: non-english -- https://master.php.net/note/delete/103714/non-english Del: in docs -- https://master.php.net/note/delete/103714/in+docs Del: other reasons-- https://master.php.net/note/delete/103714 Reject -- https://master.php.net/note/reject/103714 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179271) next »