XF 2.0 Simple query and display results on node

hutch2323

New member
Hello,

I know this is probably a very trivial question, but I am simply looking to create a node which asks a user to input a username, click a button, and it will return the email address of that user (see below). However, I am very new to xenforo and I have no idea how to go about doing so. I understand that the query will have to be located in an external .php file, but is it possible to execute the query from pushing the button from the node page? If so, what code would I need for the node and .php file?

The information is located in the 'xf_user' table and the columns are 'username' and 'email'

Thanks in advance!

Hutch
 

Attachments

  • SearchForEmail.webp
    SearchForEmail.webp
    16.1 KB · Views: 15
Top Bottom