Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query=mysql_query('select * from rank');
- for ($i=0; $i<$max; $i++) {
- $id0[$i] = mysql_result($query, $i, "id");
- $id1[$i] = mysql_result($query, $i+1, "id");
- $id2[$i] = mysql_result($query, $i+2, "id"); }
- for ($i=0; $i<$max; $i++) {
- mysqli_data_seek($result, $i);
- // depending on your php version you might need a temporary variable to
- // get the ID
- $id0[$i] = mysqli_fetch_assoc($result)['id'];
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement