SQL print in template
#1
Hello.

I have for example this structure:

[Image: IRHIWTl.png]


I would like output this in usercp template, but I don't know how to get value in template. In PHP my query is all right - when I checked output (echo) of query I saw records. But I don't know how to read records in template editor to show this on user control panel.

Sorry for my bad English and greetings for MyBB Community.
Reply
#2
It depends on which hook you are using and which template you want the values to show in. The basic idea and best approach mostly is to pick the proper hook and parse the template at the end of your function right after getting the data from the DB.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)