There are two tables in the database:
_url with
typefield_splash with
idandnamefields
In the script, the data from the first table is displayed as: $url->type .
How to print name instead of $url->type if the type from the first table matches the id from the second, i.e. the data in the type field is taken from id ?