note 104213 added to function.mysql-fetch-row

From: Date: Wed, 01 Jun 2011 10:58:57 +0000
Subject: note 104213 added to function.mysql-fetch-row
Groups: php.notes 
Request: Send a blank email to php-notes+get-180158@lists.php.net to get a copy of this message
@ryhan_balboa This may be a bit late but I think it can still be usefull.. To get to the next row using mysql_fetch_row() you just parse it again so like: <?php $query = "SELECT * FROM example"; $data = mysql_query($query); $datafirstrow = mysql_fetch_row($data); $datasecondrow = mysql_fetch_row($data); $datatirthrow = mysql_fetch_row($data); ?> Hope this helps, Ronald ---- Server IP: 69.147.83.197 Probable Submitter: 84.81.210.201 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-row.php Edit -- https://master.php.net/note/edit/104213 Del: integrated -- https://master.php.net/note/delete/104213/integrated Del: useless -- https://master.php.net/note/delete/104213/useless Del: bad code -- https://master.php.net/note/delete/104213/bad+code Del: spam -- https://master.php.net/note/delete/104213/spam Del: non-english -- https://master.php.net/note/delete/104213/non-english Del: in docs -- https://master.php.net/note/delete/104213/in+docs Del: other reasons-- https://master.php.net/note/delete/104213 Reject -- https://master.php.net/note/reject/104213 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180158) next »