2015-09-11, 11:10 PM
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]](https://camo.mybb.com/63d710fdcb0c9b6aa48c871594fb50d2f4d13e69/68747470733a2f2f692e6779617a6f2e636f6d2f37633238376436313630393234393963623965353836363036663865386437382e706e67)
![[Image: 4ad7cb37b4ca02bc0e2b71af72e7835b.png]](https://camo.mybb.com/6e79d3c4485aa17d4c8ee6f5bfc39480a8399ab6/68747470733a2f2f692e6779617a6f2e636f6d2f34616437636233376234636130326263306532623731616637326537383335622e706e67)
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]](https://camo.mybb.com/c3116b6ba4b09a3f91191f4ed92690b4ed410369/68747470733a2f2f692e6779617a6f2e636f6d2f65383235616563366665363237373066386234646130393736333564316137352e706e67)
which gives this error:
![[Image: f3931d132fcd0f3345000b8d352490f4.png]](https://camo.mybb.com/bb64dd64694c4090cb833f0b0fbe18ef377da6dc/68747470733a2f2f692e6779617a6f2e636f6d2f66333933316431333266636430663333343530303062386433353234393066342e706e67)
Thank you in advance!
P.s On line 116 is just a ending php statement like that: ?>
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.
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:
which gives this error:
Thank you in advance!
P.s On line 116 is just a ending php statement like that: ?>