View Single Post
  #1  
Old 11 Mar 2016, 10:27
robertw795 robertw795 is offline
 
Join Date: Feb 2016
Custom query in PHP module

I've been trying to query some data from a custom table in my vBulletin database from a PHP module added to a new page.

I have tried using the syntax that I found on this link; https://www.vbulletin.com/docs/html/...ards_sql_query

I try to store the results in a variable, after that I check if the variable actually has contents using an if condition. If so, it has to echo the contents to my module.

All of this should work theoratically, but as soon as I save the page and load it it only shows the page background. When inspecting the page I saw that the complete body is empty.

What am I doing wrong here?

Thanks in advance
Reply With Quote