Need help with pulling info out of the DB
#1
Hello,

I have designed my forums and spent a lot of time in it, I am just wondering (because im running games) how I could go about adding in a feature that pulls out database info?

So far I've hopefully successfully added the database category under mybb_servers, id appreciate anyone that corrects it if its wrong but I just want to store on or off in 'status'. This will be used later in an IF statement.

[Image: 7c287d616092499cb9e586606f8e8d78.png]
[Image: 4ad7cb37b4ca02bc0e2b71af72e7835b.png]

however, what i want to do is pull whats stored in 'status' and put in on my forums. So if its a 'yes' it will display 'online' and no, 'offline'. The IF statement is easy, i just need some help on checking if my database is set-up right and the code to retrieve the content inside of it.

So far I've tried alot and researched but got this far:
[Image: e825aec6fe62770f8b4da097635d1a75.png]

which gives this error:
[Image: f3931d132fcd0f3345000b8d352490f4.png]

Thank you in advance!

P.s On line 116 is just a ending php statement like that:      ?>
Reply


Messages In This Thread
Need help with pulling info out of the DB - by Nineteh - 2015-09-11, 11:10 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)