Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(10800);
- $map_width = 40;
- $map_height = 40;
- for($y = $map_height; $y >= 1; $y--) {
- for($x = 1;$x <= $map_width;$x++) {
- require_once('includes/db/DbConnector.php');
- $connector = new DbConnector();
- $result = $connector->query('SELECT * FROM map WHERE x = "'.$x.'" AND y = "'.$y.'" ');
- while($row = $connector->fetchArray($result)) {
- echo '<img src="images/map/lan_'.$row['tip'].$row['subtip'].'.gif" title="('.$row['x'].'|'.$row['y'].')" style="float: left;margin: 0;padding:0;">';
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement