note 86458 added to function.mysql-fetch-array

From: Date: Mon, 20 Oct 2008 13:06:03 +0000
Subject: note 86458 added to function.mysql-fetch-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-145505@lists.php.net to get a copy of this message
TABLE_NAMES id | Name ---------- 1 | Peter 2 | John 3 | Maria TABLE_COUNTER counter 1 I'am trying to make a loop for each time I run the "show_me_the_name.php" the script shows me a name, using two tables "TABLE_NAMES" and "TABLE_COUNTER" For example: On the first time I run the php script shows "Peter"; Second time "John"; 3º time, "Maria"; 4º time, "Peter"; 5º time, "John"; How can I do this using mysql_fetch_array? ---- Server IP: 80.64.47.13 Probable Submitter: 213.170.46.90 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-array.php Edit -- https://master.php.net/note/edit/86458 Del: integrated -- https://master.php.net/note/delete/86458/integrated Del: useless -- https://master.php.net/note/delete/86458/useless Del: bad code -- https://master.php.net/note/delete/86458/bad+code Del: spam -- https://master.php.net/note/delete/86458/spam Del: non-english -- https://master.php.net/note/delete/86458/non-english Del: in docs -- https://master.php.net/note/delete/86458/in+docs Del: other reasons-- https://master.php.net/note/delete/86458 Reject -- https://master.php.net/note/reject/86458 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#145505) next »