PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a question and am seeking some assistance if possible. I have 2 tables in my database one called map the other is users. What I'm trying to do is generate a map that is 15x15 that has the avatar associated with the user appear in the center. I'm confused on how to get the avatar in the middle of the table along with pulling from 2 tables. I need the x,y coords and the avatar from the users table, and I need the x,y coords and the tile (image) from the map table.
Here is what I have so far. Which generates the 15x15 map.