• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SEO Plugins

#1
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.
Reply

#2
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
Reply

#3
Use MySQL DATE_ADD() function 

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.