• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[House] Trainer

Adorius Black

Advanced OT User
Joined
Mar 31, 2020
Messages
301
Solutions
3
Reaction score
180
Hi Otlanders. I would like update my house.php to count how many trainers house has. I already add column trainers in house SQL but I know I need to do something more but I cant solve it.

I mean I want something like this:
When you select any house in house.php it will write:
This house has 1 door, 3 beds and 2 trainers and is placed in Thais.

Anybody know how to do it?

Thank you.
 
Solved by another way. :)

house.php
HTML:
<img width=100% height=auto src="images/house/'.$house['name'].'.jpeg" />

Put in
htdocs/images/house/
image with name of your house you use in map editor:

Example:
FireElf Flat 2.jpeg


results.png

Result:

result.png
 
Last edited:
Solution
Back
Top