Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $query=mysql_query('select * from rank');
  2. for ($i=0; $i<$max; $i++) {
  3. $id0[$i] = mysql_result($query, $i, "id");
  4. $id1[$i] = mysql_result($query, $i+1, "id");
  5. $id2[$i] = mysql_result($query, $i+2, "id"); }
  6.  
  7. for ($i=0; $i<$max; $i++) {
  8. mysqli_data_seek($result, $i);
  9. // depending on your php version you might need a temporary variable to
  10. // get the ID
  11. $id0[$i] = mysqli_fetch_assoc($result)['id'];
  12. ...
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement