CodeIgniter Forums
SEO Plugins - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: SEO Plugins (/thread-65536.html)



SEO Plugins - jetztgleich - 06-23-2016

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.


RE: Issue date - dmyers - 06-23-2016

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


RE: Issue date - pravins - 06-24-2016

Use MySQL DATE_ADD() function 

Refer: https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-add