CodeIgniter Forums

Full Version: SEO Plugins
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
SEO Experten empfehlen die Top-5 Wordpress SEO-Plugins, die Ihnen dabei helfen ihre Website Traffic und Conversions-Rate zu erhöhen . Konfigurieren Sie diese Wordpress -Plugins in CMS-Website und gehen Sie einen weiteren  Schritt um Ihr Unternehmensziele zu erreichen.
Die Features und Funktionen von WordPress sind genial.
For the database to do something like that you would need to write a database stored procedure for your database of choice (beyond the scope of this post and CodeIgniter since they are not written in PHP). In order to have PHP do something like that probably the best place would be in a model.

For Example:

Code:
class dates_model extends ci_model {

    public function insert($data) {
        /* here actually look at the incoming data and actually insert 3 rows */
    }

/* -- or -- */

    public function get_next($months,$input) {
        /* here actually grab the $input record (by id or month or something) and then create 3 records which are returned (but aren't actually in the table) */
    }

} /* end class */


DMyers
Use MySQL DATE_ADD() function 

Refer: https://dev.mysql.com/doc/refman/5.5/en/...n_date-add