Posts by black32

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

@newMenow I would pay 20 dollar on envato for the script.

@adventureroadtrips, Well I saw it popup 2 days ago and checked the demo. I still keep checking it out because it looks nice.

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

Hello Everyone,

I am looking for an Template generator. So I found a few on CodeCanyon but there not what im looking for.

I would like a template generator that can make a template with custom css and not only bootstrap ( like most that are online ). So for example I can choose which framework I want to use and when selected the script will load all elements that are available.

Also it would be awesome if I can add it to my MVC framework so I can save the templates in the database.

I hope someone can make this.

Greetz black32

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

Following you and already some other guys ;)

My profile : Black32

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

Can someone help me ?

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

I have worked with codeigniter and I like the dbforge class. But now I am busy with creating a CMS and I would like to have a class with the same functionality as dbforge.

My question is : Does someone know were I can find such a class in php. Or : Does someone know a way how to get the dbforge class to work outside codeigniter without download all codeigniter files. ( only the dbforge class file ).

Best regards, Wouter van Marrum.

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

Thank you very much abhimanyusharma003 that just works fine for me :D This helps me a lot with my custom CMS :)

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says
one quick question I want to get my vars from a config file. First I had a class which had this :
var $host;
var $username;
var $password;
var $db;

But now I need to insert the values in the class itself instead of getting them from the config file.

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

Thanks abhimanyusharma003 !

Your code worked exactly how it should. Now I am recoding everything to mysqli haha. everyone else thanks for the help !


What about this one. Just created
class test
{
    protected $host = 'localhost';
    protected $username = 'root';
    protected $password = '';
    protected $db = 'database';
    protected $link = null;

    public function __construct()
    {
        $this->link = mysqli_connect($this->host, $this->username, $this->password, $this->db);
    }

    public function output()
    {
        $result = mysqli_query($this->link, "SELECT * FROM table LIMIT 10");
        return mysqli_num_rows($result); // THIS IS OUTPUT
    }
}

$test = new test();
echo $test->output();

Output will be 10
20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

I will try it out maybe it will work. I will let you know in a few hours thanks in advance

20 posts
  • Has been part of the Envato Community for over 2 years
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Netherlands
black32 says

The error is pretty clear. You forgot to select your database (add the following code).
mysqli_select_db($this->db, $con);
Still doesn’t work.. now i get this error :
Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\projecten\shadowCMS_beta\shadow\classes\shadow.php on line 105

Warning: mysqli_error() expects exactly 1 parameter, 0 given in C:\xampp\htdocs\projecten\shadowCMS_beta\shadow\classes\shadow.php on line 107
ShadowCMS could not select a database:
by
by
by
by
by
by