[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/ -> MP_Stat.class.php (source)

   1  <?php
   2  class MP_Stat
   3  {
   4  	function __construct($stype, $slib, $scount) 
   5      {
   6          global $wpdb;
   7          $sdate   = date('Y-m-d');
   8          $results = $wpdb->query( $wpdb->prepare("UPDATE $wpdb->mp_stats SET scount=scount+$scount WHERE sdate = %s AND stype = %s AND slib = %s;", $sdate, $stype, $slib) );
   9          if (!$results)    $wpdb->insert($wpdb->mp_stats, compact('sdate', 'stype', 'slib', 'scount'));
  10      }
  11  }


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1