I do have that table in my database. That isn't the problem, as it works before trying the $engine->query() method.
Allowing me to include the dbconn in the functions without having to call it everytime i guess. I'm still getting around the basics, so if you've got any suggestions I'm all...
After converting my RevCMS classes to mysqli, my pages gets linked up to all of the stylesheets in my stylesfolder:
I assume it has something to do with my class.css.php, but I'm unsure what makes it freak out like that. Using the RevCMS mysqli edit by wesley.
{coins} has nothing to do with this, was just to show the fatal error i was getting.
This is the method that i am trying to call, which is in class.engine.php:
I'm just testing to see if my engine methods work, as i find them more practical when using mysqli.
Using arcturus database, therefore...
Still not it:
*EDIT
Looking at others global.php, they have just made a new function in the global.php. I just don't get why it won't let me access the function in my other pages.
Appreciate it. Though what do i do wrong here then?
Got this code on my /me page, and i get this err:
Fatal error: Call to a member function query() on null in C:\xampp\htdocs\app\tpl\skins\Habbo\me.php on line 145
So i just started learning OOP PHP aswell as functions, and some things doesn't make sense to me when i look at how RevCMS works.
1. How does fx. {username} work, and how does it call it from the class without the class being included in the page?
2. Gonna be converting from mysql to mysqli, and...
I barely just started coding html and php so that i could create my own stuff for my CMS, and even though i know the code might not be the best, I think it'll do, but my only concern is it being unsafe and unsecure, which i definitely don't want.
Therefore I want to ask if theres any basic...